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 (45517,45042,44674,18648,44858,18353,44767,28313,44894,18042,43800,13425,45229,28530,24412,44856,17492,44848,44875,44689,6609,17755,34194,14402,18794,45346,44671,45518,3,44870,18427,44869,18286,16885,44640,13,17114,17703,17092,44745,13922,17556,18237,45072,18719,44835,36472,17527,5388,6862,45516,44865,17278,37267,24438,44775,31354,18650,30986,5993,39676,44669,18279,44855,16935,5259,3883,44765,17657,18430)
Unknown column 'np.person' in 'where clause'