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 (24412,3,24438,18996,24411,44853,28530,6875,17601,44640,44687,44848,18446,44762,17755,44858,37267,18719,45421,44765,44531,44837,18172,45517,17839,31354,6609,24441,44711,44766,8753,44863,13988,44894,44674,44866,5993,45561,17771,30963,17848,6862,18688,18237,18185,45518,37057,18572,4765,45515,44836,17835,45042,45262,44775,32454,18286,44884,17492,45072,17114,44865,18652,5410,44764,14402,44861,17351,18430,18301)
Unknown column 'np.person' in 'where clause'