A: 

I am pretty sure that the query is ok. How many rows do you get with just

SELECT key_id FROM keyword

I think that there is just one line that matches your WHERE.

hacksteak25
Off the top of my head keyword table has more than 200rows.
A: 

Check the query directly in the database(with phpmyadmin, or in the mysql console), however this query seems to be working as you may assumed. If it returns only 1 row when you use it directly in the db, then maybe there is only one row in your table wich matches this query.

mimrock
I have tried the query directly in MySQL console and I have found all 3 ids.