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 (17601,24412,44867,24441,17351,14622,18353,17237,44866,45561,45262,18042,44671,44873,45072,44835,44766,17114,6862,44865,17771,18688,3,44858,18981,28313,44687,44845,45180,24438,45518,17335,44878,18572,44836,37267,45229,17492,44870,44894,14402,44640,45286,6875,43800,44856,18427,28530,31354,6609,6782,13425,17703,17009,18648,44837,45051,13922,18286,30963,44851,18794,45517,45515,18237,4765,18301,22509,44674,44762)
Unknown column 'np.person' in 'where clause'