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 (44767,45516,44868,37057,44854,6862,44858,18446,44856,44849,17771,17703,45567,44640,45518,44869,18430,18572,44669,13988,17278,44848,45180,44768,18650,17755,24441,17009,17492,44875,36472,37267,44894,18652,44687,19057,45043,44863,28313,44878,44765,44867,30135,5993,18172,44689,19078,39676,3883,6875,44873,18353,44762,44711,22509,44674,18894,30986,43800,44836,31354,44837,17904,45277,44766,44745,17657,18996,44685,18286)
Unknown column 'np.person' in 'where clause'