Closed fviip closed 1 year ago
'php $tags = $post->tags()->orderBy('created_at', 'desc')->fastPaginate(20); '
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'created_at' in order clause is ambiguous
Show the SQL
I'm not sure this is a fastPaginate problem. Can you show the SQL or schema? Does it work with the traditional paginate method?
paginate
'php $tags = $post->tags()->orderBy('created_at', 'desc')->fastPaginate(20); '
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'created_at' in order clause is ambiguous