Query failed : SELECT id FROM `accommodation` WHERE (`approved` = 1 AND `town` LIKE '%Swanage' OR `village` LIKE '%Swanage') AND (`type` = 3 OR `type1` = 3)AND `hotels_conferences`=1 Unknown column 'hotels_conferences' in 'where clause'