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 (44848,3883,44837,22509,45517,17351,6609,44861,17771,18286,13922,44854,44856,44765,5259,17755,18042,30963,18430,44866,44870,10402,13425,17335,44674,17092,5388,45421,34194,44878,45262,14622,45043,45346,44762,45518,18900,44853,24412,18237,44836,43800,45561,18427,18996,13,45515,17492,18688,17904,18301,9341,44865,5410,44835,17835,24441,44640,44851,18446,44689,16885,18279,37057,44849,13988,32454,44884,14402,44845)
Unknown column 'np.person' in 'where clause'