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 (44835,45516,17755,44858,44775,44851,18042,6782,44745,5388,17351,44875,19057,44531,18996,45277,44764,18650,13988,17335,44837,45262,37057,44853,45072,17839,17756,44739,34194,18301,18900,44856,44849,44869,24411,44878,45286,19078,17009,30963,3883,18353,4765,45518,3,17835,16885,18648,44765,18794,44640,44766,17771,44836,44762,45229,17237,18446,36472,17657,44848,18172,44768,16935,18286,44854,18279,37267,6875,18185)
Unknown column 'np.person' in 'where clause'