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 (24412,5410,3,44863,17755,45518,44837,13988,36472,18286,44867,30986,18652,18042,18185,44845,17835,43800,45516,44858,13425,45277,17114,22509,44687,17009,6609,45229,34194,18172,44689,17904,17351,44869,6862,44854,17756,44866,13922,44766,5388,45180,39676,17556,14622,32454,5259,18996,44873,44764,17092,9341,37057,17527,18279,18430,19057,17335,45517,44671,19078,8753,18446,18427,44836,44865,17839,44855,45561,4765)
Unknown column 'np.person' in 'where clause'