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 (17904,34194,44836,17848,44835,31354,44853,14402,44865,18430,45515,44884,45051,13425,44767,17092,17839,45042,44869,18719,44856,28313,44866,13,44845,44739,24441,18648,44765,17755,44868,45421,44764,18652,18172,19078,44848,45180,44685,45286,17335,30135,3,5259,17703,45517,45072,6875,13988,44854,44878,44711,16935,44867,39676,18981,45561,18894,18286,24411,18996,17556,5388,44894,18572,18279,18688,4765,44870,13922)
Unknown column 'np.person' in 'where clause'