Problem with SQL: SELECT categories, short_name, tbl_items.items_id as items_id, tbl_items.name as name, value, tbl_items_to_parents.parent_id as parent_id from tbl_items, tbl_items_to_fields_131, tbl_items_to_parents, tbl_fields WHERE tbl_items_to_parents.on_site = 1 AND tbl_items.items_id = item AND fields_id = field AND tbl_items_to_parents.items_id = tbl_items.items_id AND field in (686,268,427,187,421,422,423,425,291,636,593,665,598,634,336,357,392,371,111,635,715,716) AND language = 1 AND site_id = 1 AND categories = 131 AND tbl_items_to_parents.parent_id in(159006,117727,120069) order by tbl_items_to_parents.sort desc LIMIT 0, 50000