Sql error!
SELECT id, name FROM jm_categories WHERE section='main' and parent_id='0' AND `delete`='0' AND visible='1' ORDER BY pos