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 (44869,45286,44531,18446,44894,16885,18172,6862,37267,37057,45346,14622,44875,17601,45051,44671,44685,44867,3,43800,19057,44765,17839,17703,45516,44764,19078,44674,18301,17756,13,17527,44849,44835,13922,44762,44766,45229,17657,18648,45180,5259,28313,18279,44687,44858,45177,45277,17771,44856,44873,45262,45042,44863,44866,9341,17092,18981,45072,44865,44767,4686,24441,44868,36472,24412,44861,17835,44836,44848)
Unknown column 'np.person' in 'where clause'