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 (45072,24411,44764,44766,44768,44884,44868,44640,17351,22509,44854,18237,44531,17114,24412,28313,44869,44851,45177,4765,44837,30986,28530,32454,44685,6862,44878,45277,44689,44845,24441,17771,18185,44861,43800,36472,44767,45042,44875,44687,44835,34194,6609,44674,17904,10402,13922,45517,17009,18446,44867,18430,18353,44870,5388,44762,17335,8753,18279,17092,17848,31354,45421,44669,44849,45518,17278,16885,5259,17839)
Unknown column 'np.person' in 'where clause'