Here is the error I am getting:
Unknown column 'Lo' in 'field list'
Here is my code. Any suggestions to get rid of this error:
global $conn,$dal;
$customerID = mysql_insert_id();
$strSQLInsert = "insert into Orders (CustomerID, LastName) values (".$customerID.", ".$values["LastName"].")";
db_exec($strSQLInsert,$conn);
$rs = $dal->Orders->Query("CustomerID=".$customerID." and LastName=".$values["LastName"],"");
$data = db_fetch_array($rs);
$idvalue = $data["ID"];
header("Location: Orders_edit.php?editid1=".$idvalue);
exit();