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 (44854,17839,44836,45561,44762,18652,45515,45051,18688,34194,5993,44856,18572,24411,45517,17009,17771,17527,17092,44711,17756,44640,45042,18794,44848,18430,44868,5410,13922,30963,17351,17657,39676,44766,44875,44775,44894,44855,44764,37267,18042,44851,44745,44858,13,17237,19057,31354,45262,4765,44861,44865,37057,44884,18446,45286,44669,45421,17114,45277,45516,45072,17835,18301,17492,17703,44687,44878,24441,44869)
Unknown column 'np.person' in 'where clause'