SQL Ошибка для [select * from phpshop_products where items>0 and enabled='1' and parent_enabled='0' and id IN (170595,170596,186144,172098,172099,171430,171433,171426,172100,1,72763,72764,81115,81116,88862,99384,102013,102014,102016,102017,103706,103714,113418,113420,113423,113425,131824,131825,131827,131828,131830,131831,139537,139538,164437,164439,169803,172101,186145,191453,191454,191458,191459,191462,191463,191464,191465,191466,191467,191468,191469,191470,191471,200417,200418,200420,200423,200424,200425,200426,200427,200428,200430,200432,200433,202248,202249,202250,202251,202252,202253,202254,202255,) order by RAND() limit 10] . 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 ') order by RAND() limit 10' at line 1.