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 (18446,44848,17009,28313,18430,44762,44669,44766,44868,44531,30135,31354,44853,18185,18688,9341,18042,37267,45262,44866,45043,5259,16885,44640,16935,14402,44671,45286,6862,17755,3883,18894,44849,18981,44768,18650,22509,18301,44894,45567,45516,45177,17835,6609,45421,44674,44845,5388,45180,44875,18652,45515,44739,45346,17527,18279,17237,13,44884,18900,17771,44711,17703,45517,18719,17556,17848,44837,6782,43800)
Unknown column 'np.person' in 'where clause'