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 (45517,44870,19078,32454,3883,18185,5410,44835,37267,16885,44868,44851,17904,17556,44669,17114,44894,45515,19057,18279,17981,17237,31354,34194,18794,3,17009,13425,18900,18042,17756,44863,18427,45567,17755,17703,17278,4686,44861,44878,44745,8753,44858,9341,10402,18688,18894,17527,44865,18430,17848,16935,44845,45177,45518,44869,36472,6782,44855,18996,44762,17492,24411,44875,44685,28530,44854,44775,5993,44531)
Unknown column 'np.person' in 'where clause'