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 (16935,30135,3,44775,13922,17601,14402,17492,44687,45346,44671,44869,44845,44894,17755,44851,34194,17527,44863,45177,45516,44711,44689,44685,44739,37267,19057,6609,18688,44861,36472,44866,30986,31354,18650,3883,18301,17556,44640,44867,18042,44854,44745,37057,43800,18286,44762,45518,45180,18427,14622,10402,4686,45421,17835,17114,13,17278,44765,18894,5388,22509,17703,39676,17771,45286,8753,28530,18172,17848)
Unknown column 'np.person' in 'where clause'