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 (45043,45042,44848,45421,30986,3,37267,44869,45346,17755,44855,16885,18430,6782,44867,45286,45567,17556,18900,13922,45177,17601,34194,6875,44845,17657,17527,44685,45229,45277,44851,14402,17904,39676,24411,44853,30135,45517,16935,44767,17009,18894,44765,17237,17703,17835,44836,17756,45518,18042,43800,44835,18719,44837,5410,17351,18353,44858,44878,18981,44856,36472,44775,5259,17278,37057,45515,18427,28530,3883)
Unknown column 'np.person' in 'where clause'