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 (44858,8753,44765,5388,45262,44764,17492,44762,28313,18688,17092,18572,18894,18996,32454,18286,37057,5259,45421,10402,43800,44867,19057,44853,3,44856,18353,44835,17981,44894,18719,6862,18650,4686,13922,13425,18446,45043,17904,24441,17114,17755,45072,44884,45229,44768,18301,13988,17835,17556,45042,17009,44671,17756,45180,44711,44531,44851,45051,44863,45277,17839,17237,18900,19078,44849,44767,44739,18430,24411)
Unknown column 'np.person' in 'where clause'