Не верный запрос SELECT * FROM goods WHERE id IN (8644 , 6685 , 8598 , 9177 , 9178 , 4383 , 10138 , 10139 , 10140 , , 33422 , 14998 , 10141 , 10142 , 25638 , 4387 , 9375) AND goods.idtype IN (363,626,368,596,858,1120,486,489,490,493,1068,494,501,502,503,1245,485,1247,1861,825,307,604,1113,1862,3587,829,333,830,831,832,1813,1860,551,332,325,1863,309,650,1085) AND invisible=0 ORDER BY name