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 (18981,44853,44640,45051,44766,45072,44866,14402,44870,45277,5410,44775,19057,6609,36472,18650,17278,17237,16885,44894,28313,45567,5388,39676,32454,43800,18446,18648,17556,45421,17703,16935,17335,45180,44865,44845,17657,18900,44689,18286,13988,14622,44854,17755,30135,18042,44878,44855,44884,44671,44837,5993,45229,45042,44869,45518,19078,18172,44856,44687,17756,24412,44674,18894,44835,17835,44767,45043,8753,34194)
Unknown column 'np.person' in 'where clause'