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 (17492,17839,18237,30963,17335,18446,44775,17756,18301,5410,13,44531,44765,44856,45072,45177,44762,31354,44689,39676,3883,13922,17835,17527,44669,18996,6875,19057,44848,44845,45516,5993,44745,28530,44866,45421,18042,44837,44858,44640,44851,13425,18279,32454,8753,44711,44875,4686,45346,45567,44854,44674,18894,44766,37057,45180,6782,44863,44671,44855,10402,14402,44835,44739,18172,45286,44853,18353,18719,28313)
Unknown column 'np.person' in 'where clause'