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 (22509,45262,44669,44854,39676,18688,18353,44866,5388,28313,45517,9341,17492,17237,44836,6862,44775,45277,30986,44674,14622,18894,31354,17351,13,18185,28530,44837,17755,17009,45042,44689,17601,17839,5410,44687,32454,44835,16885,37057,18996,6875,17703,45567,45229,45561,3,18301,44884,44855,13988,6609,17335,3883,17756,44853,17556,44875,5993,45072,19057,18981,14402,44848,17114,37267,18652,17848,30963,16935)
Unknown column 'np.person' in 'where clause'