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 (17755,45286,30986,44689,18648,6862,44894,3883,44765,17237,28313,44671,18572,44767,34194,13922,45346,45177,44845,19078,4686,44711,14622,44863,18650,44669,24438,18900,18286,45043,18446,44849,44764,44687,39676,44870,5259,17556,17351,17771,6782,37057,44868,8753,13988,22509,17756,44878,17657,30135,37267,45421,44685,45262,45567,44762,44867,24411,45515,24412,44853,17904,44865,31354,44640,44884,17492,44869,44775,17527)
Unknown column 'np.person' in 'where clause'