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 (18172,18286,18572,37057,24441,45262,17755,17657,17835,44870,18185,44687,43800,17839,44884,44855,37267,44863,18894,44854,45567,39676,17703,44858,44848,10402,30135,44745,44865,44853,18353,45072,18996,13922,45051,45421,28530,45346,5388,13,18446,44768,5259,34194,44739,17771,18794,17237,18042,18981,19078,18719,36472,44856,44845,18301,14622,45515,24438,44669,44837,17009,44764,22509,17756,44671,45561,17278,44861,44765)
Unknown column 'np.person' in 'where clause'