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 (45515,16885,17492,3,31354,13425,13922,44855,44858,44674,44875,18172,45421,18652,45516,28530,44845,18794,18688,18279,16935,44894,19057,5259,44865,17981,44762,14622,6875,44531,44765,44711,10402,44884,13,44866,8753,44640,45072,34194,18301,44854,13988,5388,45346,3883,19078,17114,17351,44856,18648,18042,9341,44764,18353,45567,44869,44835,22509,18446,44689,45180,45177,45051,18900,17755,45277,17092,44851,18650)
Unknown column 'np.person' in 'where clause'