Warning: pg_query(): Query failed: ERROR: syntax error at end of input LINE 1: ...= N.ID LEFT JOIN PEOPLE P ON A.ARTIST1 = P.ID WHERE A.ID = ^ in /home/arachne/public_html/shared/classes/Artwork.php on line 112
Couldn't perform artwork class query.
SQL: 'SELECT A.*, to_char(A.dt_entered_pg, 'DD Mon YYYY') AS DT_SHORT, COALESCE(m.name, 'Unknown owner') AS M_NAME, M.CITY AS M_CITY, N.NAME AS M_NATION, M.WEB_ADDRESS AS M_URL, P.DISPLAY_NAME AS P_NAME, A.IS_COPYRIGHTED, A.THUMBNAIL_ID FROM ARTWORK A LEFT JOIN MUSEUMS M ON A.M_ID = M.ID LEFT JOIN NATIONS N ON M.NATION = N.ID LEFT JOIN PEOPLE P ON A.ARTIST1 = P.ID WHERE A.ID = '