Turns out this was caused by a setting in my config file:
PDO::ATTR_EMULATE_PREPARES => true
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
The error speaks for itself, the querie is trying to compare a boolean with an integer which is incorrect. However my eloquent query looks like this.
$logs = Logger::where('created_at', '>' , $validated["timestamp"])->where('frontend', true)->get();
The frontend field is a boolean.
Does laravel automaticly convert true to an integer because of the standard MySQL implementation?
I've got a feeling the issue has to do something with connection pooling, i have never run in to this issue before. I don't have this issue on my local environment and it all started after implementing session connection pooling on my managed postgresql database.
Please or to participate in this conversation.