• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Number: 1066 - Not unique table/alias

#1
[eluser]Rodrigo Alexandre[/eluser]
hi guys,

Every time I use the functions:

$this->db->select('*');
$this->db->from('blogs');
$this->db->join('comments', 'comments.id = blogs.id');

return $this->db->get();

Returns this error:
Error Number: 1066
Not unique table / alias

Even if the table does not exist (as in this example above, I pasted this code inside a function of the model and it returned this error referring to a table that has no connection, because the table does not exist in my blogs database)

This is Bug? What do I fix this error?
Every time that happens, I need to use: $this->db->query("my query") and thus works.

thanks,

Rodrigo


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.