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 (17756,45516,6609,44674,45051,30963,45518,44671,37057,17839,17556,30986,3,44762,44848,5388,44836,45229,34194,44870,45072,18996,18172,16935,18446,28313,44869,18794,18301,18688,17601,17981,39676,13425,44745,45515,6875,18894,17771,36472,44845,17114,45567,3883,14402,44775,44867,17278,44711,28530,45561,44866,44765,45177,44854,44856,44863,18185,18650,17848,44875,18237,44837,44878,18279,44865,44861,44687,44858,44835)
Unknown column 'np.person' in 'where clause'