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 (17114,16935,45180,8753,17771,44674,44768,44640,44868,17839,34194,44866,44531,18900,44848,18648,17904,45177,45561,5388,18279,22509,45277,18572,18301,28313,17835,44884,28530,18353,17351,24411,17556,44669,44854,18981,44766,45229,44835,17092,17492,9341,44745,43800,5259,18286,44845,45042,19057,44867,44739,6875,13,17848,44671,3,4686,44858,45518,44855,18688,24438,14622,39676,45346,17527,37057,13425,17703,17755)
Unknown column 'np.person' in 'where clause'