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 (17278,44868,18572,45177,5388,30986,44685,17981,37267,18996,44848,18042,17527,18185,30135,18648,44669,45518,36472,13425,18719,39676,45042,17114,44861,28313,16935,44767,45180,45517,45277,34194,44875,44856,18172,24438,43800,44775,44863,17237,5993,18301,44849,44745,6875,17848,31354,9341,45262,44687,18894,44835,14622,45516,44873,30963,44845,17771,45072,24412,37057,10402,45567,28530,3,44867,44689,44766,6609,17904)
Unknown column 'np.person' in 'where clause'