How to get different "modules" from modules table?
Find the position of the / character, take everything left of it, then do DISTINCT

SELECT DISTINCT LEFT(slug,LOCATE('/',slug) - 1) module_name
FROM moduller WHERE LOCATE('/',slug) &gt; 0;