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 (18301,18430,44858,17981,44671,28313,44863,44870,8753,14402,17556,6862,17601,45180,44868,5259,4765,44531,18648,44873,18353,43800,45561,44711,44869,44856,45567,45229,24441,17335,44836,13,19078,44849,44745,17237,18996,18688,17092,34194,36472,44866,45277,18894,5388,45517,10402,17904,44768,32454,13988,44867,3,44884,44861,18427,17771,45421,18446,45043,44687,44855,44835,4686,18185,44878,18794,18279,3883,13425)
Unknown column 'np.person' in 'where clause'