# mySQL error, I don't know whats wrong :(

**URL:** <https://forum.kirupa.com/t/mysql-error-i-dont-know-whats-wrong/172170>\
**Category:** programming\
**Created:** [December 12, 2005, 3:40am UTC](https://forum.kirupa.com/t/mysql-error-i-dont-know-whats-wrong/172170 "2005-12-12T03:40:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinkumrocks](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@dinkumrocks](https://forum.kirupa.com/u/dinkumrocks)\
**Post date:** [December 12, 2005, 3:40am UTC](https://forum.kirupa.com/t/mysql-error-i-dont-know-whats-wrong/172170/1 "2005-12-12T03:40:16Z")

</div>

Ok. I have the following query…

```php
sendreport = mysql_query("INSERT INTO reported (site,user, desc) VALUES ('$reportid','".$_SESSION["uid"]."','".$_POST["desc"]."');",$conn);
	if(!$sendreport){
		die("Invalid query: ".mysql_error());
	}

```

And I get the error… 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 ‘desc) VALUES (‘4’,‘1’,‘adsdssd’)’ at line 1

I checked all the column names like 40 times, nothing wrong there. The columns “site”, and “user” are INTS, but I dont know if that has anything to do with it.

Thanks,  
-Naaman
