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 (24411,44849,17755,45051,18172,17904,17527,17848,44531,18652,44855,44854,45346,17657,17009,39676,18446,44745,17839,3883,44878,31354,44669,18427,44861,44766,18894,16885,17351,44640,44858,17114,45517,18572,44863,34194,18301,24438,6782,18353,36472,44687,18981,9341,10402,44674,45561,28313,13425,17771,44837,18650,45515,5410,44835,45072,3,45180,45567,6609,37267,14622,18237,44775,30135,5259,17703,43800,44873,24412)
Unknown column 'np.person' in 'where clause'