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 (45517,19057,44873,17009,17839,24438,44767,45515,18996,44531,17556,32454,6782,18286,30135,24412,44775,4686,31354,45567,4765,18572,45561,44739,44765,44836,45277,5993,44687,13,18446,17278,18794,44849,9341,45072,10402,24411,14402,14622,18185,13425,44894,45518,45421,3,44863,44837,5259,44640,17492,6875,44853,44884,34194,44867,17237,44689,44851,18981,45262,18652,45177,13988,36472,44685,5388,18430,44762,44858)
Unknown column 'np.person' in 'where clause'