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 (16935,45346,10402,45177,22509,31354,17703,45517,44875,44849,4686,18996,18172,18430,32454,43800,44687,18279,44861,17835,18353,44685,44854,17527,45421,24438,17492,14622,37267,45567,44845,5388,14402,45277,5259,17335,45042,6782,17114,44878,37057,45518,24411,30986,13988,5993,30135,44775,17092,17755,44745,18427,45516,44766,18688,18286,19078,44836,18794,45043,13,45262,44531,18719,18042,44858,44867,36472,19057,3)
Unknown column 'np.person' in 'where clause'