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 (45277,19057,44875,17556,24411,44861,36472,17601,44848,17009,44671,24412,17703,16935,14622,44765,45515,44766,44856,16885,17237,44870,44863,5388,18172,45051,17527,18353,18996,34194,44853,6609,45043,18301,17092,5259,13922,18652,18430,13988,18042,18286,3,18427,45262,45516,18688,18900,44835,44855,44869,17756,45229,45177,44868,18446,44851,37057,4686,45286,44845,44768,17839,14402,44866,6782,5410,24438,44674,44775)
Unknown column 'np.person' in 'where clause'