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 (31354,44855,37267,17703,17981,44837,44875,44851,45277,45518,34194,18042,44884,10402,45517,18185,44848,17278,17904,44845,44869,18996,17755,18719,18572,17335,44873,45180,44739,6609,16885,9341,18894,44687,24438,18427,45043,44671,17756,44689,44762,44775,24411,13,45072,45561,18648,44711,13922,19057,45229,45516,14402,17839,45042,17492,18652,44849,45346,18286,17114,30986,44765,44767,18981,17835,44865,17351,16935,45515)
Unknown column 'np.person' in 'where clause'