Fix a Laravel error (SQL STATE 42000)
Budget: $10 – $30 USD
I'm getting an error on one of my Laravel project's pages:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '>>'$.pass_or_fail'= 'Passed' then 1 end) as pass_count, count(case when resul...' at line 1 (SQL: select count(case when status = 'completed' then 1 end) as total_attempts, count(case when results->>'$.pass_or_fail'= 'Passed' then 1 end) as pass_count, count(case when results->>'$.pass_or_fail'=
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '>>'$.pass_or_fail'= 'Passed' then 1 end) as pass_count, count(case when resul...' at line 1 (SQL: select count(case when status = 'completed' then 1 end) as total_attempts, count(case when results->>'$.pass_or_fail'= 'Passed' then 1 end) as pass_count, count(case when results->>'$.pass_or_fail'=