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 (44640,17657,4686,3,17839,17527,9341,44767,44858,30963,39676,22509,44768,18996,17771,37267,5410,18572,17703,18688,44745,36472,44851,44861,18894,28313,17237,18794,45517,45262,44854,18427,44848,4765,18237,18185,18172,43800,6862,44689,44764,44531,44766,44870,44836,44865,17756,18353,45180,44687,24412,44855,17848,45516,14622,8753,19078,45567,44875,18301,44835,16885,44884,24441,44685,13,17009,18286,17981,44845)
Unknown column 'np.person' in 'where clause'