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 (14402,3883,44867,18353,6875,45042,44837,45051,18719,45515,44669,22509,18430,44849,17351,37267,44863,45567,44869,44894,45346,18572,13425,44764,45516,44711,17335,44848,44845,44531,17278,44856,45043,44689,44854,44865,28530,44685,5259,43800,18652,28313,45072,34194,16885,17981,44858,30963,31354,18650,17237,44674,44671,17601,18688,37057,44775,18042,30135,24441,17755,45229,17114,10402,45517,17009,18446,18286,17835,17527)
Unknown column 'np.person' in 'where clause'