i dont think its the query's problem, because i tried the code on another server and it worked, also there are many many many errors showing up, I dont know why, I just reinstalled IIS and PHP so I do not know what the errors are showing up, the most recent one was :
Notice: Use of undefined constant ID
Should I reinstall PHP? or MYSQL? or IIS?