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 (24438,18900,18427,18652,17771,44762,8753,30986,28313,45277,44875,45051,45072,45262,31354,24441,14402,19078,19057,44766,45516,18981,44689,17703,6609,44765,5993,17492,28530,45517,44894,17835,44775,45229,44845,14622,44873,44868,44671,5388,44863,44745,45180,18172,13,43800,16885,30963,17351,17527,17009,18301,18719,6782,36472,44849,37267,44869,17839,17848,44870,44851,44853,13425,17904,44669,44836,44640,4686,44848)
Unknown column 'np.person' in 'where clause'