Database error: Invalid SQL: SELECT *,
to_char(esttime,'HH24:MI') AS esttime,
to_char(date_in,'DD. Mon YYYY') AS date_in,
to_char(last_modified,'DD. Mon YYYY') AS last_modified,
(SELECT vote FROM votes WHERE id= AND user_id='nobody') AS voted,
(SELECT COUNT(*) FROM votes WHERE id=) AS anz_votes,
(SELECT SUM(vote) FROM votes WHERE id=) AS sum_votes
FROM rezepte,v_category,auth_user
WHERE id=
AND rezepte.category=v_category.catid
AND rezepte.author=auth_user.user_id
PostgreSQL Error: 1 (ERROR: syntax error at or near "AND"
LINE 5: (SELECT vote FROM votes WHERE id= AND user_id='nobody') A...
^)
Session halted.