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 (13425,10402,45346,45229,14402,44739,18427,44671,18279,17335,18981,18172,17114,45567,44835,4765,18042,45177,44884,44531,19078,17839,44767,18900,3,45517,44775,5410,44856,45516,17527,17755,16935,44765,18430,45072,18650,44851,44866,18446,37057,17237,34194,45561,45515,18301,30986,44711,24441,17703,44762,45286,17601,30135,17835,18185,44861,45042,17351,44848,44869,43800,17981,18237,18996,44894,19057,44868,17657,44689)
Unknown column 'np.person' in 'where clause'