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 (5388,18430,44855,28313,17755,30963,34194,18688,13,17351,17981,30986,4765,44865,44851,44870,17278,44687,18237,45517,44775,44765,44873,17527,39676,18427,31354,19057,14402,44848,44640,18648,44894,17848,24441,44884,18042,44745,14622,18572,13922,44671,24411,45286,4686,18172,44866,17657,17556,18894,45072,17703,44764,45561,45229,22509,44835,45051,45043,44861,3,6782,44767,24412,5410,44685,37057,18301,36472,44863)
Unknown column 'np.person' in 'where clause'