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 (44835,17114,6875,13922,44878,17527,44866,18688,44869,24441,18794,24438,18185,18042,44894,9341,44764,18237,16935,44669,44687,44863,44861,30963,44851,44836,45567,14402,18446,22509,44671,17351,3,44689,17703,19078,45177,28313,17278,44767,17839,45421,44640,45516,18996,18900,44865,44766,6862,45262,44739,17657,36472,44867,44711,17756,24412,44765,5993,17492,44854,4765,32454,17755,45515,44853,44870,44685,45561,31354)
Unknown column 'np.person' in 'where clause'