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 (9341,44854,44836,36472,16885,5410,44875,32454,44849,44861,18446,44768,18430,16935,17278,37267,3883,34194,17009,17755,24441,19057,4765,17904,18286,44858,18237,22509,17835,17351,44767,18648,44845,44869,45518,45516,45561,31354,14622,44856,44878,45421,10402,6782,18894,44865,18794,44848,17335,18427,30963,24438,45180,17092,45229,28313,3,44671,17703,45072,37057,5388,45043,44711,17771,18719,44765,18572,28530,6862)
Unknown column 'np.person' in 'where clause'