Welcome Guest, Not a member yet? Register   Sign In
join problem
#1

[eluser]mandrake[/eluser]
Hi,
excuse me for my english.

I use Activerecord in my model
Code:
$this->db->select('*');
$this->db->from('authors');
$this->db->join('clienti_authors_related', 'clienti_authors_related.author_id = authors.author_id AND clienti_authors_related.cliente_id = 1');

Result: 0 records.

I try the query result (last_query()) in phpmyadmin:
Code:
SELECT *
FROM authors
JOIN clienti_authors_related ON clienti_authors_related.author_id = authors.author_id AND clienti_authors_related.cliente_id = 1

Result: 2 records.

why?

Is this a bug?

Thanks…


Messages In This Thread
join problem - by El Forum - 07-15-2008, 11:20 AM
join problem - by El Forum - 03-06-2012, 11:28 AM
join problem - by El Forum - 03-06-2012, 01:15 PM
join problem - by El Forum - 03-06-2012, 03:21 PM
join problem - by El Forum - 03-06-2012, 03:37 PM
join problem - by El Forum - 03-06-2012, 03:51 PM
join problem - by El Forum - 03-07-2012, 01:49 AM
join problem - by El Forum - 03-07-2012, 10:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB