Can anyone help with this sql statement please.I am using php amd MySQL and I cant figure out what is wrong, I have used the variable $data with and without parenthesis and both return the same error:Warning: mysql_query() [http://www.mysql.com/doc]: 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 '()) AND booking.roomID = Room.roomID' at line 3 in /content_ro/webdev/htdocs/schools/hhs/psy_bookings/submit.php on line 65<?php$data = $_POST['datepicker'];echo $data; //as a test method and up to here it is working! $result = mysql_query( //collects that data from the table "SELECT `Room`.`roomName`, `booking`.* FROM Room, bookingWHERE (`booking`.`bookingDate` = $data()) AND booking.roomID = Room.roomID" );