SQLite Forum

Insert Statement
Login
Hello I need help with an sqlite/Qt problem. The schema for the table is

CREATE TABLE PROJECT (
"pro_id" INTEGER NOT NULL DEFAULT 1,
"app_id" INTEGER NOT NULL DEFAULT 3,
"Start" TEXT NOT NULL,
"End" TEXT NOT NULL, 
"Output" INTEGER NOT NULL,
"Log Type" INTEGER NOT NULL, 
"Errors" INTEGER NOT NULL, 
"Success" INTEGER NOT NULL, 
"NOTES" VARCHAR NOT NULL DEFAULT '',
"Duration" TEXT NOT NULL DEFAULT '00.00.00.000',
PRIMARY KEY("app_ID", "pro_ID", "Start"),
FOREIGN KEY ("Output") REFERENCES "OUTPUTS" ("ID") , 
FOREIGN KEY ("app_ID", "pro_ID") REFERENCES "PROJECTS"("A_ID", "P_ID"), 
FOREIGN KEY ("Log Type") REFERENCES "TYPE" ("ID"));

The INSERT query (inside Qt) is 

temp = "INSERT INTO PROJECT (pro_id, app_ID, 
Start, End, Output, Log Type, Errors, Success, NOTES, Duration) 
VALUES(1,1, Date & time in quotes, Date & time in quotes, '1, 1, 0, 0, '0.0.0.0.000')";

The error I get is:
QSqlError("1", "Unable to execute", "near \"Type \": syntax error")

I feel like the problem is on the sqlite side and I'm not familiar with it at all. I started it only this year. I feel like the foreign key is where the issue is