MY QUERY IS AS FOLLOWS:
SELECT C.Customer_Forename, Customer_Surname , j.Time , date, s.Staff_Forename , Staff_Surname v.Vehicle_ID, b.Status
From Booking b
INNER JOIN Vehicle v on v.Staff_ID = s.Staff_ID
INNER JOIN Journey j on j.Vehicle_ID = v.Vehicle_ID
INNER JOIN Booking b on b.Journey_ID = j.Journey_ID
INNER JOIN Booking b on b.Customer_ID = c.Customer_ID
Where b.Place_Number = "2000LT20080312"
ERROR MESSAGE IS AS FOLLOWS:
'#1064 - 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 '.Vehicle_ID, b.Status From Booking b INNER JOIN Vehicle v o
There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below: ----BEGIN CUT---- eNp9ksFuozAURff+irvoElwDmRmC1EWGui0VJSmm6TKC1G1IATMQovYzyswH1ySdDKuRLMvvvXvu lZ7M43gee/At+DZCHnmYwmJwpg4RiR70hPhL4eEsePLQ/irqtGllQ4s8o/WmNvawqe1Qm1qwGZuc W9a5phnzJvq4KGQ5BX+rcUbu3sV96GFCGbWZWagX8iBizIWB2TWPEgNLruMe8woBxw/KyOJu5mn3 75SZdeGQxc1ikBhzMZg41EWYV90bCWfRtQdZmXmrTNf9NjUtckgSPOR+Ap/2ftfuVCmb1ZVqZJWW sjfwcWqKrjn0YABb2if58d0/pbtB2NJe7NLn53+wHn4cWyd0T5dyk68LuQouDWRUj3ddS8hVo0r8 VOo1r16QkSCKeIzbeRDhS489VKXxo19wiQsd+LcY62+VzpLv2A767ShOE+P0MXMKHpiMflkcme2o /A9z2tIBWo9rQh43spFatCjStVxFXZnJRqt+65/AwkTfLnMs+88nA164/Q== ----END CUT---- ----BEGIN RAW----
ERROR: C1 C2 LEN: 9 10 393 STR: ’
CVS: $Id: sqlparser.lib.php,v 2.23.2.1 2004/11/10 00:40:48 lem9 Exp $ MySQL: 4.0.20-log USR OS, AGENT, VER: Win IE 7.0 PMA: 2.6.0-pl3 PHP VER,OS: 4.3.8 Linux LANG: en-iso-8859-1 SQL: SELECT C.’Customer_Forename’, ‘Customer_Surname’ , j.’Time’ , ’date’, s.’Staff_Forename’ , ‘Staff_Surname’ v.Vehicle_ID, b.Status
From Booking b INNER JOIN Vehicle v on v.Staff_ID = s.Staff_ID INNER JOIN Journey j on j.Vehicle_ID = v.Vehicle_ID INNER JOIN Booking b on b.Journey_ID = j.Journey_ID INNER JOIN Booking b on b.Customer_ID = c.Customer_ID
Where b.Place_Number = “2000LT20080312”