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 (17114,17835,17527,18301,17981,44775,44531,24438,45051,17848,18794,19078,17771,44875,17657,44845,44766,17756,45567,34194,36472,17904,44762,45517,17092,44861,44866,28530,17278,44745,5388,44856,18719,45518,3,9341,18652,44837,18572,18286,17755,45346,24411,18981,44674,13,30963,10402,6875,4686,18279,5993,18688,44764,17009,37267,44865,22509,18427,44671,44873,44711,24412,18185,18650,44765,18900,14402,44894,16885)
Unknown column 'np.person' in 'where clause'