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 (44687,5410,4765,44858,44531,44855,18172,45072,39676,44856,34194,17703,18353,44878,45051,17351,44764,44689,44640,45515,17278,3883,17756,44853,18446,45180,6862,18900,30986,18650,18719,17237,14622,44849,18279,44745,6782,19078,37267,17771,44894,44767,45421,17835,9341,44873,44854,24411,44766,30963,4686,18286,44865,37057,45567,13425,44671,44868,17755,6875,5388,10402,44863,44866,17492,17839,45346,44836,18185,44845)
Unknown column 'np.person' in 'where clause'