Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

I looked at the query and found something unusual. The query has 6 bindings yet there are 7 keys in the binding array. I think this is screwing it up as binding key '4' is incorrect but im not sure why this is happening.

query log output:

array:1 [
  0 => array:3 [
    "query" => "select * from `fm_vip_demographics` where `vip_type_id` = ? and `fm_vip_demographics`.`record_status` = ? and (select count(*) from `fm_vip_demographics` as `self_3005b65b2c6b3cccca2d6b3b119f3570` where `self_3005b65b2c6b3cccca2d6b3b119f3570`.`group_id` = `fm_vip_demographics`.`vip_id` and `vip_type_id` = ? and `fm_vip_demographics`.`record_status` = ? and `relationship_id` in (?, ?)) >= 1"
    "bindings" => array:7 [
      0 => 3
      1 => 1
      2 => 1
      3 => 2
      4 => 1
      5 => 3
      6 => 14
    ]
    "time" => 0.28
  ]
]
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.