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 (18301,36472,18446,44685,18430,44768,45421,44863,3883,44884,17835,45072,17278,8753,13988,45518,5388,17114,44671,45516,18427,16885,19057,45517,44848,44865,44894,45043,44853,44674,44854,16935,17556,30963,18237,44711,17839,18185,18652,14622,6862,6609,44869,24438,17237,44739,44766,17904,13,44875,14402,44856,44767,30135,6875,44845,44867,45042,18353,44855,18688,44837,17092,44861,44765,45567,17848,17657,18172,17601)
Unknown column 'np.person' in 'where clause'