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 (44768,44866,13922,13,24441,5259,17556,44775,45051,4765,3,17839,45561,18648,44837,45421,17092,37057,45346,18719,44762,3883,44868,18353,45518,17848,44875,44835,5993,39676,18650,31354,18430,17351,18900,18172,17114,44845,44685,18981,45072,5410,44689,13425,45177,16885,16935,17835,19057,18446,18286,45229,44640,18572,45043,18894,44739,34194,6875,45516,44531,14402,5388,17981,17278,45180,17904,18042,17237,18688)
Unknown column 'np.person' in 'where clause'