Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (22509,45277,5410,39676,4686,44878,44853,44765,45518,18981,44868,44640,17848,13988,44669,18996,18279,44851,14402,44671,18688,18572,44865,3883,44711,18353,45177,18446,44835,17237,44856,14622,24412,17601,3,17703,5993,5259,17351,36472,43800,18794,44685,13922,44689,44531,13425,45229,45072,45180,44873,17556,44674,18172,44745,17839,45567,44863,44858,5388,17904,17835,17092,17756,45346,9341,44849,8753,17278,6862)
Unknown column 'np.person' in 'where clause'