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,18172,18237,24441,45043,45286,18719,30135,44531,14402,17771,18353,22509,17839,37267,44873,31354,45518,44775,14622,44669,18794,44866,44853,17703,18894,44861,44837,44685,45277,17848,44870,28530,10402,44745,28313,17351,5259,17904,44762,13922,45042,13425,4765,44836,18301,18446,18981,17492,3883,44711,17556,24412,9341,18996,4686,44765,45421,17335,45229,44851,44863,44687,36472,45567,18572,44674,45180,44689,45072)
Unknown column 'np.person' in 'where clause'