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 (18427,17771,6875,17755,45515,44689,18648,14622,13425,44868,17835,18572,18042,17848,18430,18894,4765,18719,17657,31354,45567,16885,14402,44873,44845,17351,44884,24412,8753,45516,45517,17839,24438,45421,13922,44836,5993,24411,19057,18172,44875,44775,34194,44848,17278,24441,18996,44863,32454,44685,45277,45043,18650,18900,44853,45262,44711,28313,18279,44531,18185,5388,44764,4686,44674,5259,16935,45072,17492,5410)
Unknown column 'np.person' in 'where clause'