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 (44869,17839,45517,24411,44854,44856,44894,18794,13,17755,45277,39676,6862,37057,45042,22509,44531,24438,17601,31354,16935,5259,18894,16885,45567,9341,44863,18185,32454,17492,44868,18172,44640,5410,45072,44671,17848,30963,17335,45286,6609,18572,17527,8753,5388,44687,18446,18652,44836,45043,18427,18719,37267,44837,30986,17009,45421,44878,44739,44855,19078,44766,3883,45180,17351,44858,44861,17981,6875,44851)
Unknown column 'np.person' in 'where clause'