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 (45262,5388,45042,28530,34194,13,30135,22509,24412,13988,44856,18894,39676,18648,17657,44845,18279,44835,44884,44687,44875,17527,17835,17237,5259,45180,4765,44767,44689,9341,44870,5410,14402,45229,44866,36472,3883,37267,44764,44685,16885,44849,17981,18042,37057,18286,44762,45177,44865,44853,45517,44765,44669,44854,44775,30963,24411,44863,18652,17278,17839,45567,44851,45516,8753,44640,18981,17492,18650,45051)
Unknown column 'np.person' in 'where clause'