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 (9341,44711,45043,45518,34194,30986,45177,24441,18185,13988,17009,44863,45346,5388,44674,18688,44739,44765,44894,18894,44861,6782,17335,45277,45517,18446,13,17601,17527,37267,44764,18650,18719,18286,13425,44671,18172,18900,17092,44762,22509,44870,4686,45262,44835,44640,32454,45180,39676,18301,17556,19078,17237,17771,44775,44853,44867,3883,28530,44851,18427,44858,44531,36472,10402,17835,45567,24438,44875,44849)
Unknown column 'np.person' in 'where clause'