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 (45518,13,44855,44856,18279,44869,18301,44768,44671,3883,4765,5993,18185,18430,44867,5259,13922,18652,44837,16935,45567,44854,18446,45286,44689,45229,18172,44848,16885,17092,19078,44775,5410,17556,3,17527,14402,14622,44875,31354,17835,5388,4686,43800,44739,6782,45180,17981,45561,17237,44861,45262,32454,17755,45516,18353,44531,18719,17904,17703,44640,18572,44868,44878,17009,18894,10402,9341,45421,17351)
Unknown column 'np.person' in 'where clause'