简体   繁体   中英

'id' in where clause is ambiguous

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 FROM gee_job_boards LEFT JOIN gee_distribution_partner as j32e2cb0f ON j32e2cb0f . id = gee_job_boards . dp_id WHERE id LIKE '%27%' ESCAPE '!' LIMIT 25

Filename: 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM