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 (44875,17755,3883,16885,18172,44689,24438,45515,10402,44674,17601,34194,18427,45042,44764,18688,6782,17092,45229,17009,44870,44837,13988,45043,44745,18794,45346,18286,45567,18719,44878,37267,44835,17492,5388,18430,18981,37057,17335,44854,17278,13,44836,17981,44894,44849,44768,44669,44868,18900,18650,18301,18237,5259,17839,45277,9341,44884,24412,44851,17657,24411,13922,17527,43800,6609,28313,5993,18996,8753)
Unknown column 'np.person' in 'where clause'