I have a table with some fields and some relations with others.
I get the list view with no problem, but when I try to filter the results (using the search feature in flexigrid table) I get:
A Database Error Occurred
Error Number: 1052
Column 'id' in where clause is ambiguous
SELECT
gee_job_boards
.*, j32e2cb0f.dp_name AS s32e2cb0f FROMgee_job_boards
LEFT JOINgee_distribution_partner
asj32e2cb0f
ONj32e2cb0f
.id
=gee_job_boards
.dp_id
WHEREid
LIKE '%27%' ESCAPE '!' LIMIT 25Filename: models/Grocery_crud_model.php
Line Number: 87
Error Number: 1052
Column 'id' in where clause is ambiguous
how could i solve this ?
thanks
您应该在where子句中限定您的id,例如这样
j32e2cb0f.id LIKE ...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.