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 (6609,44674,13425,44869,18894,4765,45286,43800,44767,44766,45515,19057,45051,16885,31354,34194,14622,17981,4686,45180,18688,17771,45043,44836,18301,18286,44669,45567,17848,44861,18427,44858,17492,44835,17756,8753,45229,44851,18430,17278,5388,44867,37267,28313,45561,17009,39676,18185,44689,10402,24412,18648,17703,44739,13922,45262,3,17527,44745,17335,17237,6875,24438,44884,17657,6862,45277,44768,44878,36472)
Unknown column 'np.person' in 'where clause'