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 (5259,28313,17492,44853,45043,44875,44858,44855,43800,24441,18981,17114,31354,17278,34194,18652,44884,17657,18286,14402,10402,45567,17756,44762,6862,44851,6782,18353,5410,19078,44856,18900,18185,44878,17237,18794,17009,9341,17904,5993,30135,44873,44711,32454,45072,44845,44766,30963,17839,6875,17755,13922,44674,45518,44775,18650,17092,45517,44739,13,45516,45180,17335,3883,24438,44671,17351,36472,44866,28530)
Unknown column 'np.person' in 'where clause'