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 (28313,17839,17114,37267,13922,18430,44861,44851,17601,17756,44884,43800,18794,44870,44762,5993,17492,6862,14622,19078,44894,18427,44855,9341,44863,24438,4686,18301,30963,18652,8753,45567,32454,44767,45561,44854,18446,19057,44766,45043,44867,17771,36472,45518,45051,4765,16885,44711,44687,6875,13,17237,44853,44848,10402,22509,44689,44685,18900,45421,44674,44669,45286,3883,17657,45072,17335,44856,44865,13988)
Unknown column 'np.person' in 'where clause'