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 (44775,37267,16885,44745,18286,18648,44866,44674,44858,18185,5259,44875,18688,24441,18981,44865,44739,24412,44669,18446,44711,44855,28313,17756,44854,39676,44766,17848,44531,17009,17839,5993,18237,18894,44853,10402,45515,14402,18652,44689,45286,44863,22509,17904,13,32454,18650,13988,17237,18172,6875,44837,18719,44851,17114,17601,30135,6609,18430,18572,4765,44873,45421,17335,5388,30986,17771,17492,43800,45051)
Unknown column 'np.person' in 'where clause'