$threadID=$_GET['threadID']; $result=mysql_query(" SELECT * FROM threads AS Threads INNER JOIN users AS Users ON Threads.user_id=Users.user_id WHERE thread_id='$threadID' LIMIT 1 ") or die(mysql_error()); I get this:
u have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''11' at line 3
I wrote many inner joins before. Why is my syntax wrong near the end of the query
updated: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '12' LIMIT 1' at line 3
'11(with a leading single-quote) for some reason."u have.."?