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 (44711,45286,44878,17601,6609,45262,18353,30135,44865,30986,17092,44739,44837,17114,5410,44674,44851,14402,44775,37267,13988,16935,44855,45043,44894,14622,44768,45051,3,18427,6875,18172,44858,18981,24412,17009,39676,44853,13425,44866,17756,18794,45042,44867,44849,30963,18042,18185,24438,31354,45421,18572,18648,17848,18719,45072,17839,17351,28313,19078,18900,17527,17771,44873,36472,17835,18237,45561,45515,44764)
Unknown column 'np.person' in 'where clause'