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 (44674,18981,44855,44837,44766,24412,39676,44685,18894,45346,34194,18900,44739,32454,44861,17981,17492,17756,36472,44854,44894,6862,44640,44884,43800,17835,45517,17092,45072,18688,5410,17335,6875,45567,18042,44849,45042,3883,44671,44836,44856,13988,18172,31354,44767,17009,17657,45277,18427,18794,6609,24411,44762,18648,17755,28530,13425,18996,18572,18650,17556,18286,44687,44873,5259,17527,44870,45286,4686,5993)
Unknown column 'np.person' in 'where clause'