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 (18652,45051,22509,45561,14402,19057,30986,18185,44745,44894,17351,9341,17848,17114,44766,17657,17904,44836,17981,18446,5259,17278,44765,6609,44875,44685,31354,44674,13922,45262,44711,45421,18172,18894,44764,17756,45043,18430,44868,44689,16935,24438,17335,44837,44739,18427,44849,45516,45518,44861,18279,44856,45515,4686,45180,13425,24411,17839,36472,17755,44531,34194,4765,44873,44768,13988,44848,19078,44855,44671)
Unknown column 'np.person' in 'where clause'