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 (44764,18572,24438,17556,18237,18652,18894,45277,45072,13,45346,44873,44884,18172,44856,44685,45517,45043,44711,22509,44870,18719,10402,44848,14622,8753,43800,44687,45518,17278,44837,16885,44849,24441,18430,45286,44894,17351,17601,45567,18981,24412,44854,44768,14402,28313,17092,45177,30963,44858,18286,44674,18996,18794,32454,18185,44640,18353,5993,30986,44836,13922,19078,17839,17237,44863,6862,44861,17756,17981)
Unknown column 'np.person' in 'where clause'