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 (39676,44854,18648,44867,30135,18427,17755,44848,44835,13922,17556,6782,30963,18900,44775,44640,45567,5410,18650,17904,17092,44861,44685,34194,44687,17527,44866,37267,5388,45072,36472,18446,31354,17114,44884,18794,4765,45421,18172,45277,44873,17335,18652,24412,44767,44739,44669,8753,44845,10402,18185,45180,17835,17756,17771,44745,3883,44869,44849,22509,43800,45346,44531,44868,16935,44870,44765,17848,44674,44875)
Unknown column 'np.person' in 'where clause'