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 (9341,44866,17981,17335,5388,44863,44867,19078,44745,44531,45051,45517,5259,6609,44669,45421,37057,18688,18279,45042,17092,44848,44835,45286,45567,3,44768,36472,44685,17904,4765,44856,18650,24412,32454,17703,22509,30135,31354,17237,44884,6782,44845,18446,45518,44687,44739,44849,17756,28313,17114,44775,18981,5993,34194,45043,44868,14402,18719,44858,24411,44671,44870,44837,45072,28530,24441,17601,44878,30986)
Unknown column 'np.person' in 'where clause'