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 (44669,44836,32454,44869,18237,18042,45177,44868,44764,17839,3,36472,22509,30986,17492,16885,18279,45561,44845,17755,18185,28313,10402,18427,18650,44739,39676,18688,18794,17703,34194,13425,44689,44848,44767,17904,6862,17657,30135,44884,44711,5410,17335,24441,44674,5259,44858,19078,14622,17351,19057,18446,37057,44768,31354,17835,45042,6609,5993,44849,44873,24411,18719,44531,44640,44685,9341,18652,45043,37267)
Unknown column 'np.person' in 'where clause'