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 (6862,19057,45346,17351,18427,18650,44849,44858,18719,18430,17556,8753,44762,22509,24441,17981,44873,43800,44856,30135,17335,45561,17835,18900,44853,44745,45516,44851,6782,18353,17527,13,36472,17839,44775,45421,44878,44855,32454,44866,44894,44837,44640,5388,44766,17755,34194,45567,16885,37267,24438,44854,17703,45229,39676,5410,18794,45518,31354,44689,3883,45177,45072,30963,18286,17601,45262,5259,28313,13425)
Unknown column 'np.person' in 'where clause'