Could not successfully run query (SELECT venues.restaurant, specials.price, specials.discount, specials.item, item_types.item_type, specials.time_start, specials.time_end FROM venues LEFT JOIN specials ON (venues.id = specials.restaurant_id) LEFT JOIN item_types ON (specials.item_type_id = item_types.id) WHERE ( (specials.date_expired = NULL) AND (specials.dayofweek = ) AND (specials.item_type_id = 1) AND (venues.neighborhood_id = 1) );) from DB: 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 ') AND (specials.item_type_id = 1) AND (venues.neighborhood_id = 1) )' at line 10