Hi,

I found a critical error:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'nid' in where clause is ambiguous: SELECT c.cid AS cid, SUBSTRING(c.thread, 1, (LENGTH(c.thread) - 1)) AS torder FROM {comment} c LEFT OUTER JOIN {support_ticket} st ON st.nid = c.nid WHERE (nid = :db_condition_placeholder_0) AND( (st.client IN (:db_condition_placeholder_1)) OR (st.client IS NULL ) ) ORDER BY torder ASC; Array ( [:db_condition_placeholder_0] => 2917 [:db_condition_placeholder_1] => 1 ) en advanced_forum_post_position() (línea 1357 de /var/www/vhosts/astic.es/httpdocs/sites/all/modules/contrib/advanced_forum/advanced_forum.module).

I have solved the error. I've modified the line 1345:
->condition('nid', $node_id)

by this:
->condition('c.nid', $node_id)

Regards!

Comments

troky’s picture

Assigned: jlballes » Unassigned
Status: Active » Closed (duplicate)