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 (6875,24441,17601,18688,18279,18301,18427,17848,18185,44766,44884,13922,18286,44855,17703,44669,45515,17278,44869,14622,17114,44845,13988,14402,18430,44854,45262,44868,44531,18353,44870,19057,44853,24412,17335,8753,10402,4686,44767,18981,32454,22509,44764,24411,6862,45346,28313,44671,44851,45518,24438,45516,44865,18572,44739,44745,17981,17835,5410,45042,28530,45180,18996,45072,9341,43800,16885,17527,44849,18900)
Unknown column 'np.person' in 'where clause'