Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (17756,45516,44861,43800,17527,44640,17351,24441,44894,44766,44866,44848,18650,45515,44856,18572,45042,45346,30986,18427,44869,44851,18981,18172,44685,34194,18719,18430,13425,44689,18894,16885,18900,44531,19057,17904,14622,44765,45517,44875,9341,17278,45229,44854,45567,28313,44863,44687,44873,17771,44870,44853,18996,44767,45043,45286,17009,44669,18286,17601,13922,44764,17237,44671,24412,8753,18446,44674,44837,44868)
Unknown column 'np.person' in 'where clause'