FROM wcf".WCF_N."_user user_table
LEFT JOIN wcf".WCF_N."_user_option_value option_value
ON (option_value.userID = user_table.userID)
- LEFT JOIN wcf".WCF_N."_user_avatar user_avatar
+ LEFT JOIN wcf".WCF_N."_user_avatar user_avatar
ON (user_avatar.avatarID = user_table.avatarID)
".$conditions."
ORDER BY ".(($this->sortField != 'email' && isset($this->options[$this->sortField])) ? 'option_value.userOption'.$this->options[$this->sortField]['optionID'] : 'user_table.'.$this->sortField)." ".$this->sortOrder;
*/
public static function getTag($name, $languageID = 0) {
$sql = "SELECT *
- FROM wcf".WCF_N."_tag
- WHERE languageID = ?
+ FROM wcf".WCF_N."_tag
+ WHERE languageID = ?
AND name = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array($languageID, $name));