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 (32454,18648,18719,44873,5993,44711,44854,45517,45561,18301,44835,4686,44856,45262,44766,30986,18981,44851,24412,45516,17657,45346,45042,17981,44866,43800,44640,5388,17237,45177,24438,18650,18286,44687,30135,13,14622,44894,31354,17492,44853,45229,10402,45567,9341,18353,44861,17351,18688,18279,44858,44768,44855,44739,45072,34194,44868,18430,44671,16885,44875,17278,39676,44849,24441,17756,14402,45421,45515,44669)
Unknown column 'np.person' in 'where clause'