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 (17904,13922,13,17848,44868,18650,17492,45072,45043,39676,5388,18279,45262,44861,18301,17839,31354,44863,5993,18719,17556,45518,9341,44767,44762,44875,19078,44854,30963,44866,44848,18981,43800,22509,17756,5259,44870,44531,44873,44865,36472,16885,6862,44837,44835,44855,45042,37267,18894,44689,45180,44711,45421,44856,18427,18996,10402,37057,44869,17527,19057,45346,24441,17771,6609,18430,4765,45177,14622,45516)
Unknown column 'np.person' in 'where clause'