Skip to content
Advertisement

Using raw DB to query but fails to run because sql string has an error

Im new to using laravel and i have to query using the an sql string but the code fails to run because there is an error in the sql query The code is:

The Error in got is :

Advertisement

Answer

You cannot directly specify an AND in the where function.

change

to

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement