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 (45262,44764,44865,18353,16885,18427,37057,14622,44674,45043,28530,17839,18719,18650,13922,18572,44835,19078,24441,17981,44767,45517,6782,45042,17527,18185,24411,17335,44685,18042,18237,44869,44884,18279,5388,44849,17092,18172,17351,31354,18894,18794,17601,17904,45518,18996,44894,45515,30986,30135,6609,44640,44845,30963,44866,18981,44855,17237,18430,13988,44851,17756,44853,18900,45177,43800,17278,24412,17703,5259)
Unknown column 'np.person' in 'where clause'