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 (45561,18427,44767,30986,4765,44870,45346,17278,44669,45177,17556,17771,45286,44856,17835,45051,3883,18237,17755,45072,45567,17114,44865,9341,44764,43800,44869,6862,13,18719,30135,44853,5259,17703,44685,45421,37057,18572,45042,28313,17335,18172,17351,18286,44845,45277,44711,24412,44689,44849,18446,18688,13922,19057,6782,17839,18185,44671,3,45262,13988,44687,44739,14402,44848,44837,17657,44854,17904,45517)
Unknown column 'np.person' in 'where clause'