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 (18719,13988,44854,44531,44867,37057,17335,44855,24411,44861,36472,18650,44845,45421,17527,6875,44870,44687,18794,17839,17492,4686,34194,18286,17601,44837,44640,45515,45180,45567,44671,44873,6609,10402,44689,32454,3883,18996,5388,44674,18900,44853,45229,3,45177,18427,30986,19057,44762,45561,17278,44711,43800,44868,18572,17556,44836,45516,39676,9341,44878,37267,5993,31354,44884,44766,16935,44875,44849,13425)
Unknown column 'np.person' in 'where clause'