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 (18353,28313,16935,44766,14402,24412,3883,5993,36472,45517,44863,34194,18279,44836,18650,18688,18894,44674,39676,44689,44858,44685,18981,44669,45177,32454,17657,17492,18652,45051,44739,17756,45516,44861,6609,44894,44873,18446,8753,6875,4765,17904,18237,10402,13988,44745,44775,18427,17092,44764,18572,45567,30135,19078,19057,17237,17527,44835,31354,5388,44866,13425,44531,3,45561,45518,45180,44869,44875,18042)
Unknown column 'np.person' in 'where clause'