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 (13,45177,30135,19078,30963,18981,17703,44854,44739,44894,44531,18042,45516,39676,17981,45051,44861,17556,5410,18353,44766,18172,18719,45286,5993,18446,30986,17278,44767,5259,18900,16935,24441,6862,44687,44848,17657,17009,17335,17904,3883,13922,45180,18237,44640,44765,43800,44836,6782,44869,18894,18185,17601,24438,45346,37267,44674,17756,44865,44870,16885,44866,45421,44884,44764,44858,17492,44878,19057,45042)
Unknown column 'np.person' in 'where clause'