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 (44870,17492,30986,44866,45517,44685,19057,30135,44867,44855,44869,44764,18650,14402,17114,17657,17335,18652,24438,18237,44766,24412,19078,44854,6862,44884,18279,18719,18286,44875,44836,3,18900,18996,44868,17601,17756,44767,44674,32454,44845,44853,17981,45518,44745,16935,17556,24441,13922,34194,17835,17278,18430,45421,28530,24411,45043,3883,18894,44858,44863,36472,18794,18185,18981,17351,45051,44669,17848,17237)
Unknown column 'np.person' in 'where clause'