1055: Expression #28 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'hdwallpapersfun_pics.b.category_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by<br />SELECT a.*, b.* FROM `ws_items` a, `ws_items_categories` b, `ws_categories` c
WHERE c.id=b.category_id AND b.item_id=a.id AND (b.category_id='22' OR b.category_id IN (960,963,1821,1676,1677,1678,1679,1811,1680,1681,961,964,721,1682,1683,1800,1684,1685,1686,1687,959,1802,1688,722,1689,1690,1815,1691,1692,1693,1694,1695,1696,1697,958,1570,1628,962,1627,723,1698,1699,1700,1568,1701,1702,724,1703,1638,1704,1705,1706,1632,1707,1708,1709,1674,1818,1710,1711,1712,1713,1626,1714,1715,1716,1717,1809,1810,1718,1719,1720,1721,1636,1722,1723,1820,1724,1725,1726,1727,1728,1729,1730,1731,1732,533,1733,1734,1635,1735,1736,1737,1738,1633,1739,1740,725,1741,726,1742,1814,1743,1804,1744,1629,1806,1805,1745,1746,1747,1816,1748,1749,1750,1751,1752,1753,1754,1755,1756,727,1757,1758,1759,1760,1812,1761,1762,1763,1764,1634,1765,1631,1766,1799,1767,1768,1769,1770,728,1771,1772,1637,1630,1807,1801,729,1773,1774,1775,1776,1808,1777,1778,1517,1779,1780,1781,1782,1783,1813,730,1675,1784,1803,1785,1786,720,1787,1788,1789,1790,1791,1792,731,1793,1794,1819,1795,1817,732,1796,1797,1639,1798) )
AND c.`enabled`=1 AND a.`enabled`=1 AND a.`visible`=1 GROUP BY a.id order by a.`created` DESC limit 0,16
error