Connect failed: User admin_ped already has more than 'max_user_connections' active connections SELECT gp.id as item_id, gp.new_hash as item_hash, gp.mime as item_mime, gp.gall_id as gallery_id, g.title as gallery_title, u.id as user_id, u.nickname as user_nickname, u.rating as user_rating, u.avatar as user_avatar, gp.item_weight, gp.star_rating, gp.views as item_views, gp.date as item_date, gp.position as item_position, (SELECT c.title FROM toons as c WHERE id = g.toon_id) as category_title, (SELECT c.id FROM toons as c WHERE id = g.toon_id) as category_id, (SELECT c.logo FROM toons as c WHERE id = g.toon_id) as category_logo FROM gallerypics as gp LEFT JOIN users as u ON gp.user_id = u.id LEFT JOIN galleries as g ON gp.gall_id = g.id WHERE gp.gall_id = 764388 AND gp.status = 1 ORDER BY gp.item_weight desc LIMIT 0, 40