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 (22509,18650,13988,45042,45421,14622,19057,17556,44878,17904,18185,10402,6609,32454,4686,44875,44671,8753,3,18301,17835,44669,44858,44837,43800,44865,18430,17601,5388,6862,44766,44856,18981,17839,24438,17335,44873,18427,17351,17009,44851,44853,18042,44867,5993,9341,34194,44764,44640,44836,6782,18900,44775,6875,18572,3883,45518,13,44685,18286,19078,18652,44531,31354,30986,45072,28530,44884,17981,44866)
Unknown column 'np.person' in 'where clause'