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 (44671,44878,17904,45421,9341,18286,44868,17351,44865,13425,8753,44640,18042,44894,3,10402,44856,17703,44835,18719,44837,18652,44849,44853,18430,17237,44767,17756,13988,31354,4765,17601,5993,18648,34194,17492,14622,45042,18794,22509,44851,18894,19057,45516,36472,18981,44775,44855,24412,17335,44836,5259,17556,30135,44848,44689,45043,17114,17009,32454,18237,18996,16935,37267,43800,45286,18900,45262,45229,18279)
Unknown column 'np.person' in 'where clause'