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 (14622,28530,18286,17904,18572,37267,18301,45567,44875,5259,44853,6875,17092,45561,44836,22509,17351,44640,17755,18900,18172,18427,18650,44878,44837,18996,18237,36472,45229,18652,44848,17278,6862,44856,44711,44765,17981,45286,44867,44764,45072,16885,45180,18446,3,45517,45043,44768,44685,44894,30986,5993,6609,44766,44835,18981,17839,44870,45262,13425,13922,24438,18185,32454,18894,43800,44775,44687,4765,17657)
Unknown column 'np.person' in 'where clause'