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 (18172,17771,44858,45051,30135,44767,13425,28530,5388,45229,18650,37267,44835,44854,17755,44766,44851,16885,44873,44878,44669,17278,18042,45286,44868,17848,18430,3,18446,44863,17601,30963,45043,17237,45072,44894,44837,44671,45421,18353,9341,24438,44875,18900,19078,18286,32454,44685,18301,5410,44845,43800,44865,6782,44689,17657,24411,13922,44739,44884,6875,10402,17756,44640,18652,44867,44711,34194,18648,44762)
Unknown column 'np.person' in 'where clause'