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,6875,44845,17771,44866,44671,22509,44767,44775,44854,17009,39676,36472,18446,45567,17755,45229,5388,16935,18900,18981,45286,18286,17556,17335,18794,44687,44851,44674,44762,18301,44768,44873,17237,17848,44878,6862,19078,24438,44766,44689,44867,44855,44835,13425,4686,30963,45072,44669,18172,17981,44739,44861,9341,44865,18650,44884,44836,13922,32454,18185,44640,16885,24412,17492,17904,30986,24441,4765,37057)
Unknown column 'np.person' in 'where clause'