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 (19078,44669,13425,5259,18996,17601,18900,44711,17351,44767,18286,45051,39676,18353,45277,45518,37267,36472,17492,10402,45042,44861,18719,44845,45516,18652,28530,3,44768,44863,30986,13,44674,44685,44848,24412,17556,5993,44855,45517,44853,45515,44856,6609,17839,45286,17981,18446,16935,44858,45346,45229,44762,44849,17335,17755,8753,17237,17756,44884,44865,17114,44765,17092,16885,44867,44835,44836,24411,44866)
Unknown column 'np.person' in 'where clause'