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 (36472,37267,18650,17556,18172,44674,44765,18301,44669,44870,30986,24441,44855,44848,6875,45286,44865,5993,18572,17848,3883,17703,16885,18894,45277,45229,44873,44775,45517,44762,24411,17114,44768,44868,18042,10402,44689,44861,18996,45051,44867,34194,18900,45346,18981,44854,18185,17756,44640,44869,44711,44884,13988,44856,19078,44863,4686,45042,17092,14622,18353,18427,17601,18719,44531,45421,5388,24412,17335,17278)
Unknown column 'np.person' in 'where clause'