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 (44711,24412,45177,17335,14622,44837,44870,17009,17657,44855,44835,17351,44766,31354,45346,17835,10402,44836,9341,17703,22509,45072,44894,44739,18688,44865,18301,24441,32454,13,37057,45516,44861,17237,18572,5410,18430,44867,45262,17755,17527,44689,45286,17756,18648,45180,44640,45561,18427,18900,45515,44875,24411,44674,3883,17492,44685,44849,5993,14402,18652,45518,6782,13988,44884,34194,44868,18996,44878,18279)
Unknown column 'np.person' in 'where clause'