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 (44765,44878,44851,44685,44866,45561,17657,44745,45517,17237,44837,18286,14622,18353,44775,45180,5410,17904,44894,44768,45518,6862,8753,45516,45262,18894,45072,44762,44873,18648,39676,13988,18794,24438,18427,17771,44671,44835,45043,32454,24411,13425,5388,16885,3883,24412,9341,17492,19078,18981,17351,30135,34194,17601,17839,44766,18237,44836,17527,18572,22509,16935,17556,44669,45229,45346,6782,17114,44865,45286)
Unknown column 'np.person' in 'where clause'