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 (44861,18794,10402,17351,45421,17657,45072,45042,45567,44851,17237,44711,24441,37057,44837,17904,5388,45277,30135,36472,18648,13988,16885,44669,3,5993,22509,16935,44671,17556,30986,18185,45180,18446,34194,13425,44845,44765,18286,18353,44869,17981,28530,13922,44868,17492,44762,45561,44856,5259,19057,44687,28313,44855,44836,44853,30963,18688,18894,44873,14622,44745,19078,44674,18042,6609,44764,24438,45515,17835)
Unknown column 'np.person' in 'where clause'