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 (17981,44711,18427,30963,18648,24441,44739,44837,44875,10402,17114,17237,45042,6782,18172,17755,44669,44863,5993,17835,45567,3883,24411,44689,18446,44845,44531,17771,17092,45262,44856,44836,17848,6862,45177,44858,5410,45517,45518,6609,44762,9341,28313,8753,18430,44884,18652,18996,45043,44868,30135,44745,44869,18794,14622,44851,37267,5259,30986,18981,18279,18237,17492,44674,44894,31354,44867,28530,44855,44848)
Unknown column 'np.person' in 'where clause'