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 (45262,45421,18981,45346,18688,44863,44884,45229,5410,30963,44851,17848,9341,17839,18719,44873,18650,45180,44689,44856,32454,37267,18572,18427,45517,44845,18353,24441,24412,45516,18172,14402,44531,43800,18279,45042,18430,44671,44766,44767,44861,45072,17278,44775,17492,44848,18900,39676,8753,44894,5388,13922,19078,17237,44685,45567,44687,44745,17835,6862,28313,45051,44869,45043,44854,44849,44865,44878,17009,6609)
Unknown column 'np.person' in 'where clause'