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 (31354,17556,44640,8753,18572,16885,45567,44884,17092,10402,44853,44848,4765,18894,18650,44865,44845,14622,32454,45262,45180,44711,18237,18688,18446,44861,45229,17755,44854,17904,17848,44870,44869,36472,18185,44858,37057,44867,13922,18996,44685,34194,17237,45518,44531,44873,18427,5993,9341,24412,28313,5388,16935,19078,44837,18286,44836,18172,45516,14402,44868,44739,44849,39676,17703,44856,45561,18652,6609,17351)
Unknown column 'np.person' in 'where clause'