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 (45180,44869,30135,18427,44837,44849,32454,18286,45262,44711,44531,6782,18981,13922,24441,44689,44762,24411,44866,17771,13988,4686,44745,18996,44685,28530,17092,18237,43800,45072,44765,18900,17835,31354,37057,18042,45042,17601,44863,37267,17351,17703,17114,18172,44767,5388,45346,44853,28313,18688,18794,5259,17278,17981,36472,17755,18650,22509,3,6875,45286,3883,24438,44739,18185,44674,44768,45516,44836,17848)
Unknown column 'np.person' in 'where clause'