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 (17835,17755,19078,8753,44674,3883,37057,44768,44765,17092,44711,17601,44531,13425,44875,5259,45561,18981,18648,24412,44866,44858,17839,44865,44687,45516,6609,17904,44868,24441,17351,17278,45567,37267,13922,30135,44873,18688,5993,44869,10402,32454,45518,45517,18279,17492,28530,44851,44863,19057,43800,44845,5410,5388,44669,44855,17114,24411,44685,44767,45043,28313,44861,36472,18042,17556,9341,45180,34194,44878)
Unknown column 'np.person' in 'where clause'