Syntax error, unexpected token AND, near to ' r_id != AND (r_access_view = 1 OR r_access_view = 4 AND u_id = ?0 ) ORDER BY r_created DESC LIMIT :APL0:', when parsing: SELECT [Reviews].* FROM [Reviews] WHERE ayda_hotel_id = AND r_id != AND (r_access_view = 1 OR r_access_view = 4 AND u_id = ?0 ) ORDER BY r_created DESC LIMIT :APL0: (167)