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 (18650,44835,45177,18185,44765,44848,44861,17755,16885,43800,45072,44858,36472,45561,45346,5388,17981,44869,18981,45286,39676,44685,17835,17278,44867,8753,44836,18172,44894,17237,28530,44851,30963,17839,18279,4686,16935,13,13922,44711,30986,45517,34194,44764,45229,24412,17009,44766,44863,18286,44845,13988,4765,44868,45516,18042,44767,44849,18900,22509,44531,44878,44865,18688,44687,17114,17756,14622,19078,6782)
Unknown column 'np.person' in 'where clause'