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 (44766,45042,28313,17351,30963,44866,44764,30986,17756,17601,37057,18652,18446,45346,44674,24411,44854,45043,32454,44867,44739,17556,17755,45180,17237,44687,18719,44685,44858,18648,44863,45517,10402,45516,24438,8753,5388,17278,44894,44711,44775,9341,6875,45567,45229,44875,18185,44865,44531,18794,39676,17981,6782,18172,37267,45421,5259,6609,13425,45072,18981,45262,17657,44767,44689,45286,44768,24441,6862,17848)
Unknown column 'np.person' in 'where clause'