Unknown column total when using where

you can not use result colum in the where, you should recalculate it in the where to get the desired result, but try using ‘having’:

 ->having('total', 'like', '%' . $term . '%');

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top