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 (5259,18688,44866,44873,6782,43800,30135,17771,31354,16885,44765,9341,44767,44870,45051,37057,18286,44878,18172,28313,30986,5410,45180,16935,44768,13,44854,44531,17601,44674,17492,44853,13425,44868,17278,18794,44867,18900,44764,14622,45516,44835,44855,39676,17904,18427,17556,44745,13922,18652,10402,4765,18042,37267,32454,45286,18446,44869,44689,28530,45421,24438,44894,17835,24411,18301,45177,44685,17114,8753)
Unknown column 'np.person' in 'where clause'