23.05.2012, 11:15
Remove mysql_free_result();, as you are not storing anything mysql / pointless and does nothing.
Download your mysql_log.txt from the server and open it up, and post whatever it shows about this query in this post.
If all else fails - Instead of %i, use %d
Download your mysql_log.txt from the server and open it up, and post whatever it shows about this query in this post.
If all else fails - Instead of %i, use %d