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 (44671,17657,44858,18286,18794,37057,17335,44845,3,17009,45072,24438,18301,5410,19057,18719,17492,17601,13425,18172,5259,8753,18427,37267,44767,17237,45180,45346,17114,5388,45421,13,16885,18652,17835,44868,44863,44640,34194,45518,44865,18279,43800,17756,14622,16935,14402,45229,44837,45043,3883,17351,44855,13988,45051,24412,18688,18353,17839,18185,18042,6875,30986,44849,44835,28313,36472,17981,44674,45277)
Unknown column 'np.person' in 'where clause'