Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (39676,17237,37267,5993,36472,37057,45042,30986,24438,17009,13425,5410,17839,45072,17114,44853,34194,44767,18185,17492,44867,18794,31354,18652,22509,44687,45043,44861,44764,44884,17278,3883,24441,16885,18237,17556,44671,18572,17756,13,24411,45286,17601,45346,3,18279,44849,17527,28313,44878,44689,44836,17657,8753,6782,45516,44870,17771,14622,14402,44875,44745,44866,45277,45515,45262,18042,5259,17351,32454)
Unknown column 'np.person' in 'where clause'