Q:

Parse error: syntax error, unexpected '='

I'm just starting out in programming i'm hitting my head at the moment against the wall cos i don't understand what is wrong with the following code
    mysql_query=("UPDATE tech_kunena_messages 
    SET tech_kunena_messages.parent=tech_kunena_topics.first_post_id 
    FROM tech_kunena_messages INNER JOIN  tech_kunena_topics 
    ON tech_kunena_messages.thread = tech_kunena_topics.id");

I'm getting a Parse error: syntax error, unexpected '=' i'm trying to update the _kunena_messages.parent with the first_post_id from kunena_topics as long as the .thread and .id are the same... I don't understand why i've got an unexpected =. 
Any help would be much appreciated

A:

mysql_query=(" ... )

should be
mysql_query("

Edit: you should be using mysqli_( ... ) as mysql_() is deprecated.

