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 (44863,44854,44875,30963,37057,18996,17335,18572,45043,45286,6862,45346,17278,44745,17556,44855,18185,44856,13922,44640,44671,30135,37267,3,18286,44687,18650,16885,13425,44739,4686,3883,18894,22509,17756,5993,44711,44849,17755,18794,18446,45229,44873,18172,44884,39676,44869,44767,44845,17114,45277,24411,18648,43800,14622,14402,13988,36472,24412,8753,44685,17237,17848,45177,45567,17835,17601,45042,32454,18301)
Unknown column 'np.person' in 'where clause'