I have a form with three lookups on the edit screen. None of these lookups are currently working which is perplexing me. The debug shows roughly the same message for each lookup form.
Code: Select all
[0] : ===USER==========
globeadmin
===PDO MESSAGE===
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Property' in 'field list'
===SQL===========
SELECT
idProperties,
BuildingName,
Property Name
FROM tblProperties LEFT JOIN tblRoads ON tblRoads.idRoads = tblProperties.id_Roads
WHERE
`idProperties` = ?
===BACK TRACE====
/var/www/html/rcsdb/core/nuform.php - line 792 (nuRunQuery)
/var/www/html/rcsdb/core/nuform.php - line 383 (nuGetLookupValues)
/var/www/html/rcsdb/core/nuapi.php - line 92 (nuGetFormObject)
Similarly Apllicant Name appears twice in the SQL for the Apllicant form again with a space introduced. The SQL on the actual form is just SELECT * FROM tblApplicants so I'm not quite sure how these errors are getting introduced.
Code: Select all
[0] : ===USER==========
globeadmin
===PDO MESSAGE===
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Applicant' in 'field list'
===SQL===========
SELECT
idApplicants,
ApplicantName,
Applicant Names
FROM tblApplicants
WHERE
`idApplicants` = ?
===BACK TRACE====
/var/www/html/rcsdb/core/nuform.php - line 792 (nuRunQuery)
/var/www/html/rcsdb/core/nuform.php - line 383 (nuGetLookupValues)
/var/www/html/rcsdb/core/nuapi.php - line 92 (nuGetFormObject)