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 (44711,18688,6609,44674,16885,39676,44865,3,17756,17703,30135,9341,22509,17492,44851,13922,19057,45421,45518,18042,44868,36472,18430,44884,17771,18279,44837,45567,45346,18650,44835,44689,18172,44762,44878,18286,18894,5410,6875,44849,13988,44854,45277,44873,17601,18648,17981,45286,5388,18719,44855,18900,45561,44687,45177,45516,44765,16935,44640,5993,44745,44764,45051,44870,34194,3883,24438,44866,44869,45517)
Unknown column 'np.person' in 'where clause'