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 (17703,44640,44739,17092,44766,18900,44685,44764,24411,44894,18572,39676,44775,44767,18237,3,28313,17756,44868,17556,44689,17755,44671,13988,3883,18042,34194,44861,44853,44837,44845,14622,17904,24438,45516,44856,9341,31354,45277,16885,17492,36472,44851,17839,44669,44849,44687,13,32454,44875,44674,45042,45229,18172,37267,44745,24441,44884,24412,14402,44765,45567,22509,19078,44855,17771,18719,17278,37057,44870)
Unknown column 'np.person' in 'where clause'