Invalid parameter number in Laravel Cursor Pagination
I was working with raw queries and selects in Laravel in combination with Laravel’s Cursor Pagination. This worked fine until I want to the next page.
If you encounter the following error in combination with selectRaw()
or whereRaw()
in Laravel, I hope this solution works for you.
SQLSTATE[HY093]: Invalid parameter number (Connection: mysql, SQL: ...)