is there a reason why this query wouldn't work? the following query will work if i just exclude the WHERE clause. I need to know what is wrong with it. I know the values of $key given exist in the table so why wouldn't this work?
$q = "SELECT * WHERE t1.project=$key
FROM project_technologies AS t1
JOIN languages AS t2
ON t1.language = t2.key";
each table has the following fields.
project_technologies
- key
- project
- language
languages
- key
- name