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 (17601,44674,24441,16885,14622,44766,14402,19057,44687,32454,45051,44849,3883,17904,44640,44855,18042,44836,16935,44856,44869,39676,45277,13425,17755,18353,44745,18652,44853,44739,5388,18430,28530,45567,44866,44858,18427,30135,24438,18794,3,45072,44868,44878,6862,18286,17771,24411,17756,45043,18688,45180,44894,18279,18894,17981,17839,18185,5410,4765,10402,28313,44867,5993,18172,44837,22509,45517,37267,8753)
Unknown column 'np.person' in 'where clause'