SQLException ERROR: Could not execute query [Native Error: 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 'as valueID FROM EavDateValue LEFT JOIN EavField ON fieldID = EavField.ID ' at line 1] [User Info: SELECT EavDateValue.*, NULL AS valueID, NULL AS specFieldValuePosition, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* as valueID FROM EavDateValue LEFT JOIN EavField ON fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) UNION SELECT EavStringValue.*, NULL, NULL AS specFieldValuePosition, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* as valueID FROM EavStringValue LEFT JOIN EavField ON fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) UNION SELECT EavNumericValue.*, NULL, NULL AS specFieldValuePosition, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* as valueID FROM EavNumericValue LEFT JOIN EavField ON fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) UNION SELECT EavItem.objectID, EavItem.fieldID, EavValue.value, EavValue.ID, EavValue.position, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* FROM EavItem LEFT JOIN EavValue ON EavItem.valueID = EavValue.ID LEFT JOIN EavField ON EavItem.fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) ORDER BY objectID, SpecFieldGroupPosition, position, specFieldValuePosition]
FILE TRACE:

0: "/home/rimithco/public_html/library/activerecord/ActiveRecord.php":1221 - MySQLConnection->executeQuery(" SELECT EavDateValue.*, NULL AS valueID, NULL AS specFieldValuePosition, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* as valueID FROM EavDateValue LEFT JOIN EavField ON fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) UNION SELECT EavStringValue.*, NULL, NULL AS specFieldValuePosition, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* as valueID FROM EavStringValue LEFT JOIN EavField ON fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) UNION SELECT EavNumericValue.*, NULL, NULL AS specFieldValuePosition, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* as valueID FROM EavNumericValue LEFT JOIN EavField ON fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) UNION SELECT EavItem.objectID, EavItem.fieldID, EavValue.value, EavValue.ID, EavValue.position, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* FROM EavItem LEFT JOIN EavValue ON EavItem.valueID = EavValue.ID LEFT JOIN EavField ON EavItem.fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) ORDER BY objectID, SpecFieldGroupPosition, position, specFieldValuePosition")
1: "/home/rimithco/public_html/application/model/eavcommon/EavSpecificationManagerCommon.php":784 - ActiveRecord::getDataBySQL(" SELECT EavDateValue.*, NULL AS valueID, NULL AS specFieldValuePosition, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* as valueID FROM EavDateValue LEFT JOIN EavField ON fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) UNION SELECT EavStringValue.*, NULL, NULL AS specFieldValuePosition, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* as valueID FROM EavStringValue LEFT JOIN EavField ON fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) UNION SELECT EavNumericValue.*, NULL, NULL AS specFieldValuePosition, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* as valueID FROM EavNumericValue LEFT JOIN EavField ON fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) UNION SELECT EavItem.objectID, EavItem.fieldID, EavValue.value, EavValue.ID, EavValue.position, EavFieldGroup.position AS SpecFieldGroupPosition, EavFieldGroup.name AS SpecFieldGroupName, EavField.* FROM EavItem LEFT JOIN EavValue ON EavItem.valueID = EavValue.ID LEFT JOIN EavField ON EavItem.fieldID = EavField.ID LEFT JOIN EavFieldGroup ON EavField.eavFieldGroupID = EavFieldGroup.ID WHERE objectID IN (74) ORDER BY objectID, SpecFieldGroupPosition, position, specFieldValuePosition")
2: "/home/rimithco/public_html/application/model/eavcommon/EavSpecificationManagerCommon.php":794 - EavSpecificationManagerCommon::fetchRawSpecificationData("EavSpecificationManager", Array, true)
3: "/home/rimithco/public_html/application/model/eavcommon/EavSpecificationManagerCommon.php":642 - EavSpecificationManagerCommon::fetchSpecificationData("EavSpecificationManager", Array, true)
4: "/home/rimithco/public_html/application/model/eav/EavSpecificationManager.php":106 - EavSpecificationManagerCommon::loadSpecificationForRecordSetArray("EavSpecificationManager", Array, true)
5: "/home/rimithco/public_html/application/model/ActiveRecordModel.php":338 - EavSpecificationManager::loadSpecificationForRecordSetArray(Array, true)
6: "/home/rimithco/public_html/application/LiveCart.php":574 - ActiveRecordModel::loadEav()
7: "/home/rimithco/public_html/framework/Application.php":321 - LiveCart->postProcessResponse((object)ActionResponse, (object)ErrController)
8: "/home/rimithco/public_html/application/LiveCart.php":524 - Application->execute((object)ErrController, "database")
9: "/home/rimithco/public_html/framework/Application.php":201 - LiveCart->execute((object)ErrController, "database")
10: "/home/rimithco/public_html/application/LiveCart.php":198 - Application->run(false)
11: "/home/rimithco/public_html/panama/public/index.php":82 - LiveCart->run()
12: "/home/rimithco/public_html/panama/public/index.php":159 - runApp((object)LiveCart)
13: "/home/rimithco/public_html/panama/public/index.php":170 - runApp()