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 (37057,13425,44856,6875,18430,17904,44762,5388,18719,44870,18981,44689,17771,14622,44766,44745,45517,44669,24438,18652,9341,17657,18894,17335,18996,18794,44685,45561,45346,16885,24441,45567,17351,45229,17527,45421,4765,17492,17756,45177,18301,44867,44848,44671,44884,45518,44855,44851,19057,44873,44854,45516,18650,44640,18572,30135,13922,44863,22509,45262,44768,18237,19078,17278,45043,44767,44865,18446,44765,18286)
Unknown column 'np.person' in 'where clause'