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 (45177,44739,28530,3883,44866,18237,44775,45346,17556,18794,18981,45277,45072,9341,44845,44875,8753,44768,18286,44765,18719,44858,44854,6609,44856,44669,14622,45517,44674,18185,44868,45421,44531,44689,17756,18648,17527,16935,18042,37057,44873,24441,5388,39676,6782,44762,5259,17237,44836,17351,45518,18279,44766,17904,13988,18650,13922,44835,18894,34194,44764,44671,44685,19078,6875,44867,44687,44884,22509,5410)
Unknown column 'np.person' in 'where clause'