You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try to paginate using scopeFence i get this error:
(2/2) QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'distance' in 'having clause' (SQL: select count(*) as aggregate from spots inner join favorites on spots.id = favorites.spot_id where favorites.user_id = 1 having distance BETWEEN 0 AND 150)
The text was updated successfully, but these errors were encountered:
Yes, same with the other method, but you can do it with the query builder...
DISCLAIMER: did not try it with the fence method but should be VERY similar.
When i try to paginate using scopeFence i get this error:
(2/2) QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'distance' in 'having clause' (SQL: select count(*) as aggregate from
spots
inner joinfavorites
onspots
.id
=favorites
.spot_id
wherefavorites
.user_id
= 1 having distance BETWEEN 0 AND 150)The text was updated successfully, but these errors were encountered: