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 (18900,3883,18894,44711,45177,3,44835,17601,17527,18237,17981,44531,30986,44640,44775,44762,44863,45561,9341,34194,32454,39676,17351,18688,44884,44873,44856,18042,17904,18981,17237,45180,4686,17278,24411,18427,44867,5259,17755,18719,45072,44861,17335,6609,17492,17756,5410,45518,6782,30135,18430,13988,30963,44848,44853,44687,18650,44671,45516,44745,45229,19057,16935,44836,44855,44689,45286,44739,44669,44865)
Unknown column 'np.person' in 'where clause'