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 (45043,45286,44849,5993,44766,44669,17835,6862,37267,18172,44856,44865,17848,18688,9341,44855,45567,16885,17278,45277,44685,6875,18301,18286,44863,18719,43800,45516,18996,30986,24412,45072,44861,44884,44878,45517,17492,5388,44767,17009,17601,44640,14402,45262,17527,44848,44868,6782,18648,44762,24441,44894,18981,28530,44870,5410,13922,18894,17839,4686,44687,18794,30963,45180,44873,18650,17756,10402,45515,44674)
Unknown column 'np.person' in 'where clause'