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,13922,18719,13425,44689,18446,17756,16935,18185,14622,18572,17278,45286,44835,18279,45517,44855,18981,45421,45346,13,18650,3883,44836,44775,22509,17839,44868,18430,17114,45567,6875,44851,44739,44762,44766,45229,45072,19057,34194,44685,30986,18900,17981,44853,18688,32454,44711,16885,45561,17601,17237,17835,44768,5993,28530,44837,37267,17527,24438,44671,44865,17703,8753,18353,5410,44878,45177,5259,45518)
Unknown column 'np.person' in 'where clause'