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,45561,17981,5993,45277,17114,18648,43800,28313,17771,3883,4765,44849,44870,44894,18237,18042,17351,45072,14402,18794,44858,24438,44689,18996,44856,17527,17839,44868,44866,44861,18430,44739,6609,17756,44775,5259,44863,18286,45346,44671,44848,44745,44640,5388,45515,44853,31354,45043,13988,17755,17009,24411,17601,19057,17092,44762,18572,30986,14622,17657,16935,17848,37267,17835,18446,44837,13425,45421,18353)
Unknown column 'np.person' in 'where clause'