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 (44849,44837,45286,44767,17904,19078,45180,44765,44775,6875,45042,44865,45515,44531,17657,44868,3883,44866,28313,5993,44858,44836,5388,16885,4686,10402,39676,45516,45518,17237,17981,17527,45043,44855,3,24438,45229,18185,44766,44745,44848,44873,44674,18650,44878,13,22509,8753,24412,45567,19057,44894,17703,17601,30986,44856,18652,6609,45072,14402,31354,18042,5410,44671,44685,45517,18648,9341,18237,13922)
Unknown column 'np.person' in 'where clause'