Query failed : SELECT id FROM `accommodation` WHERE (`approved` = 1 AND `town` LIKE '%Beaminster' OR `village` LIKE '%Beaminster') AND `hostels`=1 Unknown column 'hostels' in 'where clause'