select `id`, `channel_id`, `channel_code`, `channel_name`, `start_time`, `end_time`, `title`, `description` from `core_tvguide` where title="Радио "Ночь"" and channel_id="46" order by `start_time` asc, `channel_name` asc You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Ночь"" and channel_id="46" order by `start_time` asc, `channel_name` asc' at line 1 ErrorNumber:1064