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 (45051,17278,17756,44858,45277,18185,34194,44835,45042,13425,43800,18430,44767,13988,24438,44861,6875,6862,28530,44851,17657,30963,17755,44837,44669,44689,44870,44739,5259,44867,4765,45180,44849,44884,13,45421,17092,28313,44711,44766,45072,24441,22509,44764,3,17601,17703,18446,44869,44845,18719,6782,44854,45515,18794,19057,17237,16935,44868,8753,44875,17527,18237,24412,18301,44765,44685,45262,44674,18286)
Unknown column 'np.person' in 'where clause'