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 (44766,44849,45177,17556,32454,5259,44851,44762,44739,44863,18996,13,44866,18172,6782,17237,16935,44674,45072,44671,45517,45262,17848,9341,30135,45180,44868,17703,44669,45051,13425,44855,45043,18794,44775,17601,24441,5993,45516,5388,18301,4686,44867,44837,17756,44689,28530,18430,16885,45421,17835,18648,18900,44870,18981,17839,18652,44687,44711,34194,17278,45567,44853,44878,18353,39676,17335,44894,31354,44685)
Unknown column 'np.person' in 'where clause'