Debug School

rakesh kumar
rakesh kumar

Posted on

Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous

Errors
Image description

query

Image description

solution
I left the alias when u join u should speify table name

 ->where(['trips.id' => $event_id, 'trips.user_id' => $user_id ])
Enter fullscreen mode Exit fullscreen mode

Image description

Image description

Top comments (0)