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 (45421,32454,44863,44866,44858,44766,44671,44894,28530,45180,5388,36472,44845,17848,45346,44878,45177,5259,45262,18430,44765,18301,18981,14402,18172,19078,14622,17335,44762,5993,37057,6782,45516,18353,22509,17755,17278,24438,44865,17835,16885,13,17981,44640,34194,18237,44861,17009,24411,18042,18900,17092,17237,44868,17527,18572,37267,30135,44674,18996,18688,3,17703,44855,44837,16935,44884,30986,44687,19057)
Unknown column 'np.person' in 'where clause'