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 (44837,45516,45515,44671,18900,45177,14622,45286,18430,17092,22509,44685,17527,45072,24441,17703,13988,44856,17492,44674,44894,17771,3883,44854,44764,5388,44669,18648,17601,4765,3,17756,36472,17114,44775,44848,18237,44531,44849,45042,24438,44873,24411,18301,45567,44768,44870,18446,44855,18185,24412,18719,5993,44739,44711,17835,18427,4686,45346,18650,28530,17981,17839,34194,17848,17335,45561,18688,44884,17237)
Unknown column 'np.person' in 'where clause'