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 (18719,17278,44845,44836,44766,44762,44868,6609,44854,45515,17556,18427,13922,28530,18185,44869,9341,44875,44865,18430,14402,24412,44878,44767,44853,36472,22509,5993,6782,6875,18353,44765,45177,43800,13,44689,4765,44851,45229,39676,18172,17848,44768,28313,5410,31354,18042,30963,44764,45516,18446,24441,44674,45262,45277,37057,44870,6862,44849,17492,44745,45072,44837,34194,17335,17601,3,17835,44856,18279)
Unknown column 'np.person' in 'where clause'