Jump to content

ambiguous column in getItemsWithPermission

Go to solution Solved by Martin A.,

Recommended Posts

This code …

$recordClass::getItemsWithPermission( array(array('category_id=?',$record->container()->id), …

Results in “Column 'category_id' in where clause is ambiguous” in developer mode. How can I make the call unambiguous? I haven’t found anything about using aliases in such a call with getItemsWithPermission and prepared statements. 

(Manually adding the column name works of course, but I am not sure that’s the cleanest and recommended solution.)

Edited by opentype
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...