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 (44878,45561,30963,10402,44869,17657,5993,18900,17492,18427,22509,44775,24411,5388,45072,32454,18185,18042,17601,13,8753,17756,44640,45042,44739,44863,17556,44873,6862,44858,18430,44669,44767,44768,44894,44762,44851,24438,45516,45518,6875,18894,44848,24441,45180,44875,6609,44836,45177,18719,31354,45277,18446,18286,45286,13425,45515,44865,17848,28313,17771,16935,44866,36472,18279,34194,13988,44849,17114,24412)
Unknown column 'np.person' in 'where clause'