SQLSTATE[42000]: Syntax error or access violation: 1064 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 p.variant = 0 GROUP BY p.id order by p.priorite DESC LIMIT 0,26' at line 1
SELECT SQL_CALC_FOUND_ROWS p.id, p.symbol_pl AS symbol, p.name_pl AS name, p.shortdescription_pl AS shortdescription, p.price, p.promotionprice, p.new, p.firstpoland, p.priorite, p.availability FROM product AS p WHERE visible = 1 AND 1 = 1 AND ( p.name_pl LIKE '%walentynki%' OR MATCH(p.search) AGAINST ('walentynki' ) OR MATCH(p.shortdescription_pl) AGAINST ('walentynki' ) OR MATCH(p.longdescription_pl) AGAINST ('walentynki' ) OR MATCH(p.search) AGAINST ('walentynki' ) ) AND p.price <= and p.variant = 0 GROUP BY p.id order by p.priorite DESC LIMIT 0,26