MySQL client ran out of memory SQL query : SELECT categoryID, name, parent, products_count, description, picture FROM SS_categories where categoryID<>0 ORDER BY sort_order, name