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 (18430,44848,45043,31354,6609,44689,18427,18981,24411,44711,44845,45042,18301,18894,17601,24438,44884,17981,44775,10402,45516,13922,44671,17703,37267,17771,18794,44837,17556,44870,44869,17492,45346,18185,43800,45567,6862,45421,17527,44764,16885,44685,39676,13,44863,5410,18237,44875,44762,17848,24441,45286,18279,16935,45518,17755,5259,44531,18042,9341,28313,45262,32454,44745,17839,44868,44767,18652,45180,14622)
Unknown column 'np.person' in 'where clause'