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 (44674,17527,45518,30135,44851,45515,17904,3883,17492,44640,17556,17092,44870,44745,28313,16935,10402,5259,8753,44531,24438,18572,45229,6609,14402,17237,44835,32454,45286,19078,44853,37057,9341,44849,44768,36472,4765,18301,44775,45516,44894,31354,44764,44854,5410,18719,37267,17009,45421,34194,44687,13425,45180,44866,44836,45072,18172,17848,39676,44863,45277,17771,24411,18042,4686,24441,6875,14622,19057,18279)
Unknown column 'np.person' in 'where clause'