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 (45346,17527,13425,44766,6862,17114,18900,13,44767,18446,8753,17601,44869,45229,45043,18042,44765,18286,30963,17848,44875,44764,44849,19057,17839,44878,13988,45516,44669,17981,45177,18650,44873,44711,32454,22509,24412,17755,44856,44745,45518,19078,44865,5259,44858,45277,9341,31354,17756,18172,17703,45286,44837,18353,44674,45072,6609,44851,44861,18996,17904,17335,45051,17278,36472,44836,37267,37057,44884,5410)
Unknown column 'np.person' in 'where clause'