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 (18427,17092,17981,18185,44764,45346,45277,45042,44894,44674,17601,13922,44870,44745,14622,44762,17904,28313,8753,17848,44873,45072,6862,18894,18172,45177,32454,17556,44865,44531,4765,5410,24441,10402,18279,18301,4686,22509,17835,17755,45561,37057,45180,45421,24412,44739,18794,45051,18353,19078,18237,17492,18981,44671,44845,44687,44837,17278,44868,34194,31354,45518,44640,13988,44836,44861,45229,24411,44858,5259)
Unknown column 'np.person' in 'where clause'