@machobymb it means maybe you are doing something wrong. if it works in PhpMyAdmin, it should work on Phprad generated app.
your query should look like this when you add what I said you should add.👇
SELECT tbl1.hname, tbl2.kname FROM tbl2 JOIN tbl1 ON tbl2.attr = tbl1.id WHERE tbl2.id
NOT IN (SELECT tbl3.attr FROM tbl3 WHERE (tbl3.year = DATE_FORMAT(CURRENT_DATE(),'%Y'))
AND (tbl3.week = DATE_FORMAT(CURRENT_DATE(),'%V'))) ORDER BY tbl1.hname, tbl2.kname
Give me an example value of what is stored in tbl3.week and tbl3.year in your database.