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,13988,45516,18981,44845,45518,6875,17981,45051,44863,18446,45346,44711,17839,16885,17703,3883,44855,17771,24438,4686,44866,18894,8753,19057,18301,44854,18688,44837,17009,17237,6862,45421,44768,18042,44836,44869,39676,43800,44765,44674,14402,44865,17756,44856,18430,44531,44884,18172,44766,18353,45567,24441,44764,24411,18237,45277,37057,6609,44873,5410,45072,18185,17492,44870,18996,44867,44640,4765,44687)
Unknown column 'np.person' in 'where clause'