Błąd zapytania sql : SELECT s.*,ps.stock AS stock FROM size AS s, product_size AS ps WHERE ps.stock>0 AND s.id=ps.sizeId AND ps.productId= AND s.active=1 ORDER BY s.position ASC
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 s.active=1 ORDER BY s.position ASC' at line 1