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 (6875,44870,18652,45262,44775,5388,45346,10402,44853,45043,44894,44845,44764,44867,13,19057,17351,44687,24411,17601,44766,45516,17771,36472,44531,45042,14402,44762,31354,18237,18430,16935,44875,44711,18981,44640,17703,44745,39676,18719,5259,45229,44884,6782,45517,44851,17848,44858,34194,18185,44689,44854,18172,44739,44873,44835,44685,45180,17904,44878,44863,18286,17237,44848,24441,18353,18572,17756,45051,44865)
Unknown column 'np.person' in 'where clause'