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 (44837,45516,37057,44858,8753,44851,44739,18688,17278,17351,44711,17703,6609,5259,17756,17092,44836,18794,44762,44863,18286,18185,17335,18430,16935,45567,44853,44849,44867,18719,44685,45346,44674,44868,24441,17009,45229,16885,44866,30986,17755,18894,28313,18648,17114,44640,24438,22509,17771,18652,44845,44884,17657,5993,6875,19057,14402,17848,45277,44861,44865,45561,44875,18353,24411,44835,4765,44765,45177,44855)
Unknown column 'np.person' in 'where clause'