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 (17904,44767,18301,44739,18237,24412,6609,44878,17114,45180,44868,8753,45043,5993,13922,5259,44711,44640,17009,18894,44845,13988,44687,44894,44766,19057,44865,17556,18172,14402,16935,18688,39676,45567,44867,4765,18719,32454,6862,44837,30135,17335,44853,9341,18185,45516,18652,44836,18648,44835,24438,44745,19078,18996,18042,44764,17848,43800,36472,45561,24441,4686,18279,44775,45051,13,17601,28530,44671,45346)
Unknown column 'np.person' in 'where clause'