SELECT `a`.*, `b`.`access_lvl`
FROM `module` `a`
JOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`
WHERE `module_id` = 1
AND `b`.`user_id` = '12'
AND `b`.`status` =0
ORDER BY `name`