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 (28313,14622,24441,18894,44894,45515,17237,18279,18794,44873,44775,18981,17835,16885,18648,18572,17114,17755,45042,5993,44689,13922,45072,18719,5410,18900,3883,45277,17601,19078,6782,28530,44856,45180,30963,17839,13988,22509,17556,44767,44866,44855,44671,44837,6875,44836,44863,31354,4686,44711,44869,45516,44674,17703,45051,44853,17278,30986,24411,13425,3,44849,18430,18427,18652,4765,44867,34194,45262,44764)
Unknown column 'np.person' in 'where clause'