catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

join alias table is wrong #942

Closed deawx closed 3 years ago

deawx commented 3 years ago

Medoo Version 1.7.10 This my code $r = $db->select("item(a)", [ "[>]customer(b)" => ["customer_id" => "id"] ], [ "a.id", "b.company_name" ], [ "a.id" => 437565 ]); i debug is show SELECTa.id,b.company_nameFROMitemASaLEFT JOINcustomerASbONitem.customer_id=b.idWHEREa.id= 437565

i think Should be is ONa.customer_id=b.id``

Thank you catfan

catfan commented 3 years ago

This has been fixed on cac5738.