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 (34194,44854,45051,17771,3,44870,30135,44866,24412,44671,18430,45043,44685,44640,17278,18650,45346,18572,44894,17527,44865,18719,16935,44845,28530,8753,18353,44739,43800,44674,5410,45516,28313,13988,44837,4765,4686,45421,44851,17009,44855,17351,45517,17114,45515,17237,44863,5259,45561,3883,18279,18286,17601,17492,45177,45567,44711,45286,44669,39676,6609,45518,44884,44835,17835,45072,17839,44856,9341,24441)
Unknown column 'np.person' in 'where clause'