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 (44689,32454,45561,4765,44767,44835,44775,44669,44762,36472,18446,18172,24441,44863,18648,44856,44768,34194,10402,5993,17657,18652,19078,45043,44851,18572,45229,44869,44845,28313,17237,6875,17703,45277,37057,44861,44894,44766,17904,44853,18650,44875,44870,44884,24411,44640,45518,45072,45421,22509,45515,18427,44671,18353,3,43800,3883,44765,45262,18719,18688,8753,44849,5410,9341,39676,18279,19057,31354,44855)
Unknown column 'np.person' in 'where clause'