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 (24441,44739,10402,45177,44711,4686,45277,45515,18042,44884,17114,13425,37267,18286,24412,44531,44836,9341,30986,17904,37057,44875,18237,44835,18427,13,24438,17351,14622,18794,19057,5993,44845,44849,44762,18648,44764,44669,45072,45518,39676,45180,44865,18996,44766,5259,17839,6875,45346,44873,28530,22509,45229,17703,28313,45286,17492,6862,45517,31354,45042,13988,44674,45516,45421,44640,17657,36472,44848,14402)
Unknown column 'np.person' in 'where clause'