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 (37057,44671,18900,18042,44855,18185,28313,10402,44866,44669,17601,31354,45561,44845,24441,45515,4765,17335,44875,44873,44878,44863,44775,44865,18279,44762,45043,44766,3,44851,45177,45072,19057,45346,17237,17848,18301,14622,18719,44689,34194,9341,5993,18353,44711,43800,17527,17771,44856,44884,44837,44640,4686,17839,17981,18981,17092,37267,44674,16935,44868,44849,17755,44765,18650,17835,44869,6782,30986,6862)
Unknown column 'np.person' in 'where clause'