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 (18981,18900,18427,18286,16935,32454,44849,17009,24412,17092,45567,44765,17835,44856,4686,18237,18572,17756,18353,19057,17703,37057,34194,18185,44669,5410,17771,45043,44894,17601,44855,44764,17114,45177,3,30963,18794,44848,31354,13,6875,45346,43800,44853,18172,45518,17981,44884,17755,39676,9341,6609,18446,18430,44685,8753,28313,37267,45042,45072,24411,19078,44870,4765,13922,5259,24441,44687,18652,44875)
Unknown column 'np.person' in 'where clause'