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 (43800,44766,44849,45421,44835,44870,30986,18427,44762,18894,18446,24411,44884,44711,44868,17981,17527,44861,44739,28313,45262,17335,44764,45043,18688,17092,45072,18572,44775,13,16935,18648,44853,44745,39676,18900,28530,45567,6875,5410,45517,44851,14402,44854,44867,18981,16885,44768,44689,6862,22509,30135,45286,6609,18042,17492,44836,17835,19057,3883,4686,17114,44531,9341,44865,44845,44765,44894,17756,44837)
Unknown column 'np.person' in 'where clause'