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 (30963,5410,19057,45515,18279,45051,18688,30135,17556,45180,17351,45516,28530,17657,18042,44854,44685,18996,45042,13922,45421,28313,6609,24438,17703,44837,44764,22509,44861,39676,44848,16885,44745,3883,4765,14402,17756,37267,8753,45177,17835,43800,31354,3,17492,44878,4686,6782,44762,24441,45346,9341,45043,30986,45229,17278,17904,24411,18286,44767,18185,18237,18427,16935,44894,18650,44674,44775,44687,6875)
Unknown column 'np.person' in 'where clause'