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 (44849,44775,17756,44687,18427,44855,44861,28530,44766,18353,34194,45518,17703,13922,17114,4765,17278,44845,5259,45043,13425,17527,3883,45180,45421,17556,43800,18279,18648,18172,17335,17904,44870,5410,44854,44866,4686,44873,19078,18794,17657,6862,17092,44875,6875,18430,44835,18446,37267,24412,18996,45051,45567,14402,17771,5993,44869,44689,44640,18650,45229,18894,44894,19057,44762,45517,24441,18286,45516,18572)
Unknown column 'np.person' in 'where clause'