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 (45518,17835,34194,18894,8753,24438,18650,45043,44685,6782,44845,17351,44765,44767,45051,43800,44868,18427,30986,45421,18237,28313,44894,44689,5993,18719,17755,45262,17009,45516,44766,4765,17703,17492,18572,44531,13,5259,18301,24411,44869,44762,17601,45229,45517,18185,5388,44835,44640,44875,19057,19078,6862,44858,18794,44775,44671,44764,44837,44884,18648,17839,18279,45180,14622,30963,10402,44873,45515,18981)
Unknown column 'np.person' in 'where clause'