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 (44711,45346,44685,45515,44836,17278,14402,43800,36472,45567,17092,18894,19057,6862,5259,44531,4686,17771,44671,17756,44861,37057,44768,18446,18286,44766,44863,44669,17601,3883,6609,9341,45286,5993,45043,24411,44848,18172,17904,17703,45277,39676,32454,13425,44674,30135,16935,44765,44866,18719,17009,17335,45561,44875,18572,44856,44739,28530,30963,6875,8753,34194,18301,45518,44849,44894,44865,45421,13988,44870)
Unknown column 'np.person' in 'where clause'