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 (17657,18894,17755,18301,44689,44865,30986,45229,45421,8753,45262,13425,44767,45072,44848,18286,14402,17839,18430,45177,18996,45518,44687,44739,44894,17527,4686,45561,18427,18172,17492,18652,44685,44867,3,44855,18353,14622,44866,10402,16885,17904,36472,17848,18237,45042,44858,45567,17601,44863,18650,18185,44856,13988,44711,44835,24441,13,17092,16935,44766,37267,5259,18900,44853,44868,44836,18446,44878,17981)
Unknown column 'np.person' in 'where clause'