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 (5259,45567,17755,45346,44884,13,44855,18185,44768,17335,17601,44856,44745,17114,18237,17981,44878,44875,45421,44674,9341,32454,18719,45177,44671,18794,5993,6609,18981,45518,44863,18353,31354,28530,17848,16885,17237,3883,45517,4765,45051,10402,44853,44775,44845,44851,18430,18652,18894,24412,17351,13988,18648,44766,17839,44865,18650,44689,44739,44835,3,45262,17092,45180,24441,17657,45072,44767,14622,17009)
Unknown column 'np.person' in 'where clause'