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 (18996,6782,44870,30986,44861,30963,45286,45567,44849,44674,17755,44669,17092,44766,18900,18286,18430,14402,24438,44687,44875,17009,17601,45043,44685,4686,17756,45229,18688,44869,44768,18301,16935,44764,24412,22509,17556,44867,44762,37057,44711,44640,16885,18427,45516,3,13,45515,44836,44873,14622,44765,44835,18719,18981,8753,44858,3883,44884,32454,17839,39676,13988,44853,18042,45262,5388,44775,44837,9341)
Unknown column 'np.person' in 'where clause'