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 (44836,44855,17981,45421,45072,45561,18172,45567,44865,44669,44765,17492,44739,44863,5993,30986,13922,18894,24441,14402,24438,3883,18427,44767,45516,18237,37267,44745,44835,44845,16935,44764,44866,44671,6782,17755,44837,18286,13988,45518,44687,43800,45346,39676,44853,44711,44894,18301,44531,18650,28313,17237,44762,17835,19078,5259,18042,18430,45515,10402,22509,45229,44689,44875,18572,44873,17351,17092,18996,17756)
Unknown column 'np.person' in 'where clause'