Błąd w zapytaniu: SELECT p.id, p.id_category, p.name, p.path, p.plink, p.rating, p.rating_nb, p.custom FROM zs_product AS p WHERE p.id_category IN(1503,1504,1505,1506,1507,1509,1510,1511,1512,1513,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1563,1564,1565,1566,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1587,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1623,1624,1625,1626,1627,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1644,1647,1648,1649,1650,1651,1652,1653,4070,1654) ORDER BY p.offers DESC, , rating asc LIMIT 0,35
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' rating asc LIMIT 0,35' at line 1