searchable
searchable copied to clipboard
Forge + This Package: SQLSTATE[42000]: Syntax error or access violation: 1463 Non-grouping field 'relevance' is used in HAVING clause
I have tried turning off MYSQL Strict Tables mode and still get the same issue.
1+
L5.3 has strict mode set to true by default. Check in config/database.php and try:
'strict' => false,
@simplethemes Thanks! That did it.
even after disabling strict mode in laravel I have the same issue
Illuminate\Database\QueryException with message 'SQLSTATE[42000]: Syntax error or access violation: 1055 'financetest1.customers.first_name' isn't in GROUP BY (SQL: select * from (select
customers.*, max((case when LOWER(
customers.
first_name) LIKE s then 150 else 0 end) + (case when LOWER(
customers.
first_name) LIKE s% then 50 else 0 end) + (case when LOWER(
customers.
first_name) LIKE %s% then 10 else 0 end) + (case when LOWER(
customers.
last_name) LIKE s then 150 else 0 end) + (case when LOWER(
customers.
last_name) LIKE s% then 50 else 0 end) + (case when LOWER(
customers.
last_name) LIKE %s% then 10 else 0 end) + (case when LOWER(
customers.
id) LIKE s then 120 else 0 end) + (case when LOWER(
customers.
id) LIKE s% then 40 else 0 end) + (case when LOWER(
customers.
id) LIKE %s% then 8 else 0 end)) as relevance from
customerswhere
customers.
deleted_atis null group by
customers.
idhaving relevance >= 7.00 order by
relevancedesc) as
customerswhere
customers.
deleted_at is null)'
@SapneshNaik i have same issue
I had the same issue with some fields not being part of the GROUP BY. By setting up strict mode to false, it fixes the issue. Thanks!
thanks sir, i have same problem and to change config/database.php mysql "strict => false" 👍