-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Databasese Error #60
Comments
The file |
I have the same problem, how do you fix it? can you tell me please? |
Appears to be a problem with selecting everything from a table and then attempting to store it as a single column in the query, specifically "SpecField.* as valueID" Below is a patch file for application/model/eavcommon/EavSpecificationManagerCommon.php. I have no idea if it causes issues or not, but it does allow the site to properly load.
|
My webstie suddnly accurence 'Database Error' as follows
Error message returned from the database:
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 SpecificationDateValue LEFT JOIN SpecField ON specFieldID ' at line 1] [User Info: SELECT SpecificationDateValue., NULL AS valueID, NULL AS specFieldValuePosition, SpecFieldGroup.position AS SpecFieldGroupPosition, SpecFieldGroup.name AS SpecFieldGroupName, SpecField. as valueID FROM SpecificationDateValue LEFT JOIN SpecField ON specFieldID = SpecField.ID LEFT JOIN SpecFieldGroup ON SpecField.specFieldGroupID = SpecFieldGroup.ID WHERE productID IN (38147, 38146, 38145, 38144, 38143, 38141, 38140, 38139, 38138, 38137, 38136, 38135, 38134, 38133, 38132, 38131, 38130, 38129, 38128, 38127, 38126, 38125, 38124, 37959, 37958, 37957, 37956, 37955, 37954, 37953, 37952, 37951) AND SpecField.isDisplayedInList = 1 UNION SELECT SpecificationStringValue., NULL, NULL AS specFieldValuePosition, SpecFieldGroup.position AS SpecFieldGroupPosition, SpecFieldGroup.name AS SpecFieldGroupName, SpecField. as valueID FROM SpecificationStringValue LEFT JOIN SpecField ON specFieldID = SpecField.ID LEFT JOIN SpecFieldGroup ON SpecField.specFieldGroupID = SpecFieldGroup.ID WHERE productID IN (38147, 38146, 38145, 38144, 38143, 38141, 38140, 38139, 38138, 38137, 38136, 38135, 38134, 38133, 38132, 38131, 38130, 38129, 38128, 38127, 38126, 38125, 38124, 37959, 37958, 37957, 37956, 37955, 37954, 37953, 37952, 37951) AND SpecField.isDisplayedInList = 1 UNION SELECT SpecificationNumericValue., NULL, NULL AS specFieldValuePosition, SpecFieldGroup.position AS SpecFieldGroupPosition, SpecFieldGroup.name AS SpecFieldGroupName, SpecField. as valueID FROM SpecificationNumericValue LEFT JOIN SpecField ON specFieldID = SpecField.ID LEFT JOIN SpecFieldGroup ON SpecField.specFieldGroupID = SpecFieldGroup.ID WHERE productID IN (38147, 38146, 38145, 38144, 38143, 38141, 38140, 38139, 38138, 38137, 38136, 38135, 38134, 38133, 38132, 38131, 38130, 38129, 38128, 38127, 38126, 38125, 38124, 37959, 37958, 37957, 37956, 37955, 37954, 37953, 37952, 37951) AND SpecField.isDisplayedInList = 1 UNION SELECT SpecificationItem.productID, SpecificationItem.specFieldID, SpecFieldValue.value, SpecFieldValue.ID, SpecFieldValue.position, SpecFieldGroup.position AS SpecFieldGroupPosition, SpecFieldGroup.name AS SpecFieldGroupName, SpecField.* FROM SpecificationItem LEFT JOIN SpecFieldValue ON SpecificationItem.specFieldValueID = SpecFieldValue.ID LEFT JOIN SpecField ON SpecificationItem.specFieldID = SpecField.ID LEFT JOIN SpecFieldGroup ON SpecField.specFieldGroupID = SpecFieldGroup.ID WHERE productID IN (38147, 38146, 38145, 38144, 38143, 38141, 38140, 38139, 38138, 38137, 38136, 38135, 38134, 38133, 38132, 38131, 38130, 38129, 38128, 38127, 38126, 38125, 38124, 37959, 37958, 37957, 37956, 37955, 37954, 37953, 37952, 37951) AND SpecField.isDisplayedInList = 1 ORDER BY productID, SpecFieldGroupPosition, position, specFieldValuePosition]
How can i solive this problem?
Look forward to hearing from you soon.
Thank you very much.
Jeong
The text was updated successfully, but these errors were encountered: