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 (18900,34194,13988,44894,30963,8753,44869,45177,18981,17771,6862,44848,44687,3,44671,17278,44856,17556,3883,31354,18237,45346,44865,44775,5410,44836,44851,17703,44867,44873,45042,17835,32454,44845,18688,44765,45180,44870,17335,44854,17848,44768,18652,18279,45277,44875,44767,44689,44837,17092,24411,44866,6875,44766,44669,16935,44863,44745,45516,24438,14402,44762,18650,18894,45518,18794,10402,17981,5259,44835)
Unknown column 'np.person' in 'where clause'