Sometimes, if you use custom collection with join tables:

you’ll get an error:
‘SQLSTATE[23000]: Integrity constraint violation: 1052 Column ‘created_at’ in where clause is ambiguous’

To avoid that, use this:

Leave a reply

Your email address will not be published.