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 (44640,37057,5993,9341,6875,17527,17703,18981,3,14402,44835,6609,45561,44775,6862,18301,45043,44845,18894,44870,14622,18279,17092,3883,44762,45229,18650,19057,44685,19078,5388,32454,17009,17335,44878,18185,18900,45517,18427,45516,17556,18286,44837,44766,36472,43800,44745,44894,18237,18446,44861,44875,44854,44849,4765,44865,45277,44853,17839,44869,18996,18688,28313,4686,18794,24411,39676,17114,16935,45518)
Unknown column 'np.person' in 'where clause'