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 (44873,44861,44866,45346,18648,17771,18042,28313,44858,18652,17904,45286,44853,45567,17527,34194,5410,14402,13922,45177,6862,6609,44845,17114,17657,44739,44766,18719,44894,17601,44868,44869,44863,18279,44671,45517,44674,6875,44856,44765,44867,45042,18185,44669,5388,44835,18572,32454,44768,18794,44851,44685,44854,44848,5259,45051,17835,44764,37267,44870,19057,10402,17237,17839,44640,18894,6782,44745,13425,18900)
Unknown column 'np.person' in 'where clause'