i am focusing on APPCELERATOR TITANIUM.

i am utilizing a database by which oddly some sql queries aren't working correctly such as this for example:

db.execute("SELECT Location_Diners.Dining_Time,Location_Diners.First_Name,Location_Diners.Last_Name,Location_Diners.PartySize,Location_Diners.Diner_ID,Location_Diners.DinerStatusColor_ID,Location_Diners.Notes,Location_Diners.Diner_ID,Location_SeatedDiners.Table_ID FROM Location_Diners LEFT JOIN Location_SeatedDiners ON Location_Diners.Diner_ID=Location_SeatedDiners.Diner_ID");

this is actually the error i am getting please assist me here.....

2011-12-21 11:47:29.416 abc[5254:ac03] [ERROR] A SQLite database error occurred on database '/Users/../iPhone Simulator/4.3.2/Applications/C377123C-7A2A-4FDF-9314-428713C885FD/Library/Application Support/database.sql': Error Domain=com.plausiblelabs.pldatabase Code=3 "An error occured parsing the provided SQL statement." UserInfo=0x6ad4330 {com.plausiblelabs.pldatabase.error.vendor.code=1, NSLocalizedDescription=An error occured parsing the provided SQL statement., com.plausiblelabs.pldatabase.error.query.string=SELECT Location_Diners.Dining_Time,Location_Diners.First_Name,Location_Diners.Last_Name,Location_Diners.PartySize,Location_Diners.Diner_ID,Location_Diners.DinerStatusColor_ID,Location_Diners.Notes,Location_Diners.Diner_ID,Location_SeatedDiners.Table_ID FROM Location_Diners LEFT JOIN Location_SeatedDiners ON Location_Diners.Diner_ID=Location_SeatedDiners.Diner_ID, com.plausiblelabs.pldatabase.error.vendor.string=no such table: Location_Diners} (SQLite #1: no such table: Location_Diners) (query: 'SELECT Location_Diners.Dining_Time,Location_Diners.First_Name,Location_Diners.Last_Name,Location_Diners.PartySize,Location_Diners.Diner_ID,Location_Diners.DinerStatusColor_ID,Location_Diners.Notes,Location_Diners.Diner_ID,Location_SeatedDiners.Table_ID FROM Location_Diners LEFT JOIN Location_SeatedDiners ON Location_Diners.Diner_ID=Location_SeatedDiners.Diner_ID')
[ERROR] invalid SQL statement. Error Domain=com.plausiblelabs.pldatabase Code=3 "An error occured parsing the provided SQL statement." UserInfo=0x6ad4330 {com.plausiblelabs.pldatabase.error.vendor.code=1, NSLocalizedDescription=An error occured parsing the provided SQL statement., com.plausiblelabs.pldatabase.error.query.string=SELECT Location_Diners.Dining_Time,Location_Diners.First_Name,Location_Diners.Last_Name,Location_Diners.PartySize,Location_Diners.Diner_ID,Location_Diners.DinerStatusColor_ID,Location_Diners.Notes,Location_Diners.Diner_ID,Location_SeatedDiners.Table_ID FROM Location_Diners LEFT JOIN Location_SeatedDiners ON Location_Diners.Diner_ID=Location_SeatedDiners.Diner_ID, com.plausiblelabs.pldatabase.error.vendor.string=no such table: Location_Diners} in -[TiDatabaseProxy execute:] (TiDatabaseProxy.m:136)

any assistance is highly appreciated ................

Hey Prateek I believe you need to use LEFT OUTER JOIN. Take a look,

What joins does SQLite support?

Based on this LEFT JOIN = LEFT OUTER JOIN however the keyword LEFT OUTER Participate in supported in SQLite3.

As seen here you must do LEFT OUTER JOIN such as this:

SELECT Location_Diners.Dining_Time,
  Location_Diners.First_Name,
  Location_Diners.Last_Name,
  Location_Diners.PartySize,
  Location_Diners.Diner_ID,
  Location_Diners.DinerStatusColor_ID,
  Location_Diners.Notes,
  Location_Diners.Diner_ID,
  Location_SeatedDiners.Table_ID
FROM Location_Diners
LEFT OUTER JOIN Location_SeatedDiners ON Location_Diners.Diner_ID=Location_SeatedDiners.Diner_ID