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 (44854,18430,19078,44687,18279,24438,44768,44669,18688,44685,24412,44870,17492,44762,44894,45262,44848,44878,6875,44875,18286,18996,18648,44674,30963,18042,18719,6862,18301,45518,17278,45043,43800,44765,34194,17771,17703,24411,45229,5259,44867,44764,17657,45286,18900,44766,28313,45277,44689,44851,44869,17351,18894,17904,4765,37057,44849,3,44853,13922,44767,16935,44775,28530,44845,17009,17237,45051,18572,24441)
Unknown column 'np.person' in 'where clause'