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 (17335,19057,14402,17527,18719,45051,44861,44856,44873,4765,14622,17601,18286,13988,44687,44766,45277,44884,18237,18301,30135,22509,37057,16935,45561,45286,18353,45072,18172,44851,17848,39676,17009,18650,45229,8753,45567,34194,17492,5410,45516,3883,44855,6875,44745,18279,3,18185,24411,18981,18894,13,44845,30986,44671,18688,18900,17981,30963,44685,45043,28313,17771,45262,44768,17839,44775,44867,18996,45515)
Unknown column 'np.person' in 'where clause'