FILE: BSL_TOUR
Error in query execution:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1Query:SELECT it.id,it.name,it.time_from,it.tour_tag,it.time_till,it.id_directory_name,it.special_offer ,it.page_url,it.overview,it.tour_highlights,it.page_url,it.destination_covered,it.grade,it.duration,it.time_till,it.time_from,dn.name dirname,images.url_small_img,images.url_large_img FROM ((itineraries it LEFT JOIN itinerary_images AS itiImage ON it.id=itiImage.id_itinerary) LEFT JOIN images ON itiImage.id_image=images.id),directory_name dn WHERE `tour_tag`='' or `tour_tag` like '%,,%' or `tour_tag` like ',%' or `tour_tag` like '%,' AND it.block<>'Y' AND it.id_directory_name=dn.id GROUP BY it.id ORDER BY it.