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 (44868,44873,17981,44848,44671,17556,17527,17601,45567,45262,44849,45421,44768,44863,44894,18042,18900,17492,44869,44878,34194,44875,44851,18427,6875,45518,18430,37057,30986,45561,18279,16935,44531,30963,43800,44674,4686,44762,45286,18353,45517,18688,44866,17848,19078,28313,17904,18172,45051,8753,44765,28530,17009,14622,45177,44858,18185,44865,44855,13922,17839,16885,44745,17835,17278,45515,45277,13,45229,18648)
Unknown column 'np.person' in 'where clause'