I'm writing an interface for a database using medoo and I'm trying to use INNER JOIN when executing a query:
$this->db->select("oc_t_item_description", [
//join
"[><]oc_t_item" => ["fk_i_item_id" => "pk_i_id"]
],
[
//columns
"*"
]
);
The query itself works fine:
SELECT * FROM oc_t_item_description
INNER JOIN oc_t_item ON oc_t_item.pk_i_id = oc_t_item_description.fk_i_item_id
I followed the example provided here:
The query runs just fine, but when I try to replicate it in medoo, it fails. I know that medoo is connecting to the database just fine etc...because I have run other queries through it just fine. However, I am stumbling with this INNER JOIN.
What am I doing wrong?