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 (18650,44765,45042,18172,18648,44867,18279,44669,5410,17601,9341,5259,24441,44775,45286,3883,44858,17556,6875,13988,16885,6782,17351,45043,5388,45421,44687,45518,44685,45561,44873,45277,6609,44674,44863,14402,17527,18430,45517,17237,17839,6862,24411,44856,24438,44869,17755,45346,45516,36472,10402,18286,18894,13922,44531,5993,18688,44768,3,17835,22509,44853,17904,44849,13,18794,24412,17492,45180,8753)
Unknown column 'np.person' in 'where clause'