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 (13,18572,45262,45177,44775,37267,44766,19057,17839,44884,37057,45072,44739,44764,13988,18237,3883,14402,44848,17771,44851,30963,18900,4686,24411,44870,18301,18652,44745,44687,44863,31354,17351,18042,45515,6609,18430,18172,18446,44685,44837,17492,45277,44531,44835,17657,17755,30135,17237,45518,45421,17092,30986,17835,44836,5410,44853,17278,44869,44711,44669,17848,9341,17601,18981,16935,45229,18719,18648,45051)
Unknown column 'np.person' in 'where clause'