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 (6875,44767,45042,18446,44869,44875,18719,44835,44851,34194,44765,44853,32454,45567,44837,24438,44766,18279,5410,18172,44848,18794,44867,44856,17839,43800,44855,44689,45346,30963,6782,13922,44863,44884,44836,44674,44845,17092,44854,44775,36472,17601,24411,44878,30986,18894,18900,44669,45286,13988,44849,17703,45515,18650,18572,44640,6609,18301,44873,22509,17755,8753,45277,17657,18237,45516,18286,28313,44764,39676)
Unknown column 'np.person' in 'where clause'