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 (5993,45177,19057,19078,18719,30135,18894,18652,45042,44861,18981,45515,18572,13425,14402,45346,17771,17556,44849,24411,17756,44884,4765,18430,34194,18185,45072,44745,44870,24438,44894,18301,4686,44669,14622,28313,45517,17492,44854,44848,17848,17351,44866,30986,37057,45043,44671,17009,5410,43800,44674,44878,17335,5388,45516,5259,17114,17981,6782,3,44835,17839,31354,44687,45262,45051,17835,18446,18172,13)
Unknown column 'np.person' in 'where clause'