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 (44866,4686,44851,17755,18719,17839,45517,34194,45072,17771,28530,44669,31354,24412,45516,17835,14622,18652,17981,44869,18981,17335,17492,13922,19078,44868,44848,44870,17657,17904,45421,30986,18286,18794,43800,17114,6609,9341,44853,18650,44640,45229,37057,45518,45043,44856,44878,44531,17703,18688,18172,45567,16935,18237,18572,45180,6875,13425,6862,24438,18648,44875,44687,45177,18301,44674,18900,24441,17756,3)
Unknown column 'np.person' in 'where clause'