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 (13922,44764,45567,14402,18719,17335,17492,45561,13425,18279,37267,18172,44884,18894,44845,44869,44745,44849,24441,44856,44640,44870,24412,4765,3,30963,44767,18648,17556,45042,17237,45515,45072,16935,45180,44762,45346,17755,44835,44867,45516,34194,44775,13988,44739,18353,44851,45517,17839,36472,17835,5410,44855,6609,44689,44765,17527,45518,44866,30135,18185,44669,24411,44868,16885,18301,44894,39676,17904,18996)
Unknown column 'np.person' in 'where clause'