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 (4765,44762,5388,17492,18719,24411,44837,44739,14622,45516,45229,17981,4686,45051,18042,3883,17237,5259,45421,18353,32454,17335,44531,39676,44856,17755,9341,24412,17601,36472,44835,44687,6875,18894,16885,44867,45515,3,45180,16935,34194,17835,37057,18996,45346,44854,6862,13,18688,18652,44894,44640,6609,45277,6782,44669,17009,44861,44685,44671,18172,18650,44878,44764,17114,18446,44870,18286,17848,44845)
Unknown column 'np.person' in 'where clause'