На ваши вопросы отвечают ведущие специалисты нижегородских клиник. Задать вопрос вы можете без регистрации на сайте. Но если в последующем вы хотите дополнить свой вопрос, то вам необходимо пройти регистрацию. Как стать консультантом?
Онлайн-консультация не заменяет визита к специалисту. Все ответы консультантов носят информационный характер и не являются рецептами или врачебными заключениями.
Зддравствуйте, Подскажите пожалуйста, где можно в г.Н.Новгород изготовить детскую ортопедическую обувь для ребенка 5 лет (для исправления комбинированнного плоскостопия обеих ног)? Заранее благодарна за Ваш ответ.
Обратилась за помощью ( по поводу невроза) в одну Нижегородскую клинику, нарвалась на сексуальное домогательство со стороны психотерапевта. Было очень стыдно, потому что растерялась и не смогла адекватно отреагиравать в этой ситуации. Сейчас меня это ужасно мучает. К тому же я заплатила не маленькие деньги (больше 20 000 руб.) как поступить, куда обращаться?
Ошибка выполнения запроса!!! Ваш запрос:" SELECT name_razdel FROM t_catalog_razdel Where id_razdel=You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid = 0
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid = 0
ORDER by c.comment_id' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ' at line 18 "Ошибка выполнения запроса!!! Ваш запрос:" SELECT
c.*, u.user_login as user_login,
IF(cv.comment_id IS NULL,0,1) as user_is_vote,
cv.vote_delta as user_vote_delta
FROM
a_comment_foto as c
LEFT JOIN (
SELECT
comment_id,
vote_delta
FROM a_comment_foto_vote
WHERE user_voter_id = -1
) AS cv ON cv.comment_id = c.comment_id,
sv_user as u
WHERE
c.img_id = AND
c.user_id=u.user_id AND comment_pid =
ORDER by c.comment_id ascYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND
c.user_id=u.user_id AND comment_pid