Status of error #3453686: new

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ) AS s\n WHERE excluded <> 1 \n at line 8 (SELECT id, name \n FROM ( SELECT t.word_id AS id, \n IF(u.word_name IS NULL, t.word_name, u.word_name) AS name,\n IF(u.excluded IS NULL, COALESCE(t.excluded, 0), COALESCE(u.excluded, 0)) AS excluded\n FROM `words` t \n LEFT JOIN user_words u ON u.word_id = t.word_id \n AND u.user_id = \n ) AS s\n WHERE excluded <> 1 \n ORDER BY name;)"
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ) AS s\n WHERE excluded <> 1 \n at line 8 (SELECT id, name \n FROM ( SELECT t.word_id AS id, \n IF(u.word_name IS NULL, t.word_name, u.word_name) AS name,\n IF(u.excluded IS NULL, COALESCE(t.excluded, 0), COALESCE(u.excluded, 0)) AS excluded\n FROM `words` t \n LEFT JOIN user_words u ON u.word_id = t.word_id \n AND u.user_id = \n ) AS s\n WHERE excluded <> 1 \n ORDER BY name;) from mysql->get"

Program trace:
#0 /var/www/default/src/main/php/web/display_selector.php(66): mysql->get(SELECT id, name..., -7)\n#1 /var/www/default/src/main/php/model/view/view_component_dsp.php(349): selector->display(-2)\n#2 /var/www/default/src/main/php/model/view/view_component_dsp.php(446): view_component_dsp->dsp_word_row_selector(view_component_..., col-sm-6, -1)\n#3 /var/www/default/http/view_component_edit.php(136): view_component_dsp->dsp_edit(0, Object(word), 1, -1)\n#4 {main}