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 (44531,17092,44687,44669,18353,16935,17351,17771,4686,45518,44851,18996,44835,44745,17114,44867,39676,44762,31354,18286,24438,18719,18430,44878,19057,44768,45262,24441,13988,37057,44836,18572,18237,24411,17848,18688,34194,8753,6862,18650,44689,44863,30135,44848,44685,17835,18794,44671,4765,9341,17335,14402,18648,18042,17904,44870,17556,44766,6875,17278,44765,18900,45517,44869,17492,44894,17755,45072,3,28530)
Unknown column 'np.person' in 'where clause'