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 hay_schedule.show_time >="2018-06-19 00:00:00" and hay_schedule.show_time <=' at line 25
fetch_all(

array (
  0 => '
			select
				hay_schedule.id
				,hay_schedule.film_id
				,hay_schedule.cinema_id
				,hay_schedule.show_time
				,hay_schedule.show_format
				,hay_schedule.cc

				,hay_film.age_limit
				,hay_film.duration
				,hay_film.id as film_id
				,hay_film.point
				,hay_film.original_name
				,hay_film.name as film_name
				,hay_film.trailer as film_trailer
				,hay_film.original_name
				,hay_film.name_id as film_name_id
				,hay_film.image_url as film_image_url

			from
			 	hay_schedule
				left join hay_cinema on hay_schedule.cinema_id = hay_cinema.id
				left join hay_film on hay_schedule.film_id = hay_film.id

			where hay_schedule.cinema_id =  and hay_schedule.show_time >="2018-06-19 00:00:00" and hay_schedule.show_time <="2018-06-19 23:59:59"
			group by
				hay_schedule.film_id
			order by
				hay_schedule.film_id DESC
		',
)
) at packages/haytv/modules/Cinema/db.php:193,
get_schedules(
array (
  0 => 'hay_schedule.cinema_id =  and hay_schedule.show_time >="2018-06-19 00:00:00" and hay_schedule.show_time <="2018-06-19 23:59:59"',
)
) at packages/haytv/modules/Cinema/forms/list.php:91,
on_draw() at cache/pages/rap.cache.php:515,
run() at index.php:5