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 (44894,44855,45421,18279,17009,18286,18353,44765,28530,16885,44878,6782,44775,13988,17492,17657,18237,24441,44669,18650,4686,45180,44531,44866,17839,39676,44766,18427,18430,6862,16935,18794,45262,17092,44856,17335,10402,6875,44687,5993,45286,18172,44689,44849,44865,18185,44845,44854,19057,13922,5388,44764,44868,18719,3883,17351,18894,45516,5410,6609,44837,45043,43800,19078,45072,44869,44640,45567,17114,44863)
Unknown column 'np.person' in 'where clause'