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_, 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 (13,137,12,268,161,133,184,60,171,53,248) AND language = 1 AND site_id = 1 AND categories = order by tbl_items_to_parents.sort desc LIMIT 0, 50000