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 (17335,6609,18572,31354,17657,18286,13988,17703,45517,18430,44853,45043,18996,17237,8753,16935,44745,18900,3883,28530,18794,44870,44837,14622,18279,13922,18427,43800,24441,18042,9341,10402,4686,45421,45516,44894,44878,32454,45286,17904,17009,24412,39676,17351,18301,30963,45515,45277,30135,45177,24411,18172,44884,18894,37057,17835,44775,45072,44866,17756,44671,5388,17771,30986,18688,45567,44865,45180,44767,17114)
Unknown column 'np.person' in 'where clause'