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 (18279,44858,16885,44851,17492,44868,17092,13,18688,45042,18185,45072,36472,30135,28313,44878,44861,30986,44689,18894,13425,45567,17527,44853,18981,17556,45177,44762,14402,6782,37057,39676,45286,6875,18446,17756,44837,45518,44766,18794,44531,6862,44765,17981,18572,17835,45516,18353,17904,18900,22509,44775,44845,17755,13922,16935,17657,17351,3883,44671,4765,24411,44869,44865,19057,44768,18652,17114,18650,45346)
Unknown column 'np.person' in 'where clause'