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 (44849,18427,13,22509,3883,44745,18648,18996,37267,14622,17756,44851,17771,44878,18688,18446,17601,44669,44531,44687,44884,37057,44870,44873,18353,45567,44640,44875,44711,18981,44685,17703,18286,17839,44739,18301,17657,30986,45346,34194,44858,45177,44764,6782,44861,24412,16885,5259,44856,18172,44837,18900,44867,30135,44674,45042,17351,24438,17335,24411,45516,45229,17556,44869,44671,44865,45561,17278,45043,3)
Unknown column 'np.person' in 'where clause'