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 (18301,44845,17904,17835,45043,44858,44837,18279,44687,44870,44865,44674,14622,17009,37267,8753,18446,17771,9341,6609,44849,32454,6862,34194,24441,24438,45346,13988,44863,18650,22509,44894,44836,44711,24411,17703,44685,18894,18794,36472,45177,17335,44861,44854,17556,44875,44856,17839,44739,17848,45518,18430,44835,16885,44851,16935,45516,18237,18648,3,44689,44867,44531,44775,45229,3883,6782,4686,44855,44669)
Unknown column 'np.person' in 'where clause'