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 (18446,19057,17601,18981,45517,44866,18894,10402,13,44745,18652,45561,45518,18996,18900,44870,14622,18286,45516,16885,43800,17981,28313,44674,44861,45515,44765,17237,13922,45262,45421,5410,17835,18688,18042,17114,13425,44878,4765,24411,44845,30963,31354,44873,17657,17848,37267,44531,44849,44851,44762,3883,44739,18185,32454,17335,44854,44669,18301,6875,17839,18237,44848,17556,5259,45229,44711,17756,17771,34194)
Unknown column 'np.person' in 'where clause'