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 (44863,44745,44894,37057,44848,44835,22509,18446,44853,43800,24411,19078,18572,18301,45042,6875,44868,39676,44685,45072,44861,17278,30986,4686,44851,18900,6782,24412,19057,14402,17351,13,18996,17756,6862,5993,45262,44869,5388,17848,34194,44855,30963,30135,16935,44866,44768,17009,44836,17981,17492,45277,8753,17601,45567,44873,45421,18650,17835,45051,18353,4765,44878,45518,45561,45229,18286,17527,18185,44689)
Unknown column 'np.person' in 'where clause'