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,44869,44868,17335,44867,13988,17703,44671,44531,31354,18042,18652,37267,45180,44870,18301,5993,17755,16885,17114,44765,39676,18894,45229,44762,44865,14622,18648,44768,44739,37057,8753,4765,44767,44745,17756,18996,5388,44848,44854,44855,18172,44836,4686,45286,44878,32454,18719,44764,45515,18430,6875,44875,6609,5410,18794,44861,44689,45177,36472,18353,3,17237,44851,30986,6862,45421,24438,17835,9341)
Unknown column 'np.person' in 'where clause'