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 (45177,18981,19078,17278,17848,45262,44884,14402,30986,44875,44861,6862,17009,17703,6875,44531,44845,13988,45517,18894,17114,17904,43800,45043,17351,44674,44851,44745,44873,5388,44863,17237,18688,18427,44866,17601,44836,17839,22509,37057,45421,39676,24438,44775,44854,36472,17492,17335,18650,18652,44764,44685,44878,5259,44640,44869,44766,44687,18353,18572,44853,17981,16885,44837,30135,45286,13922,24412,17835,4765)
Unknown column 'np.person' in 'where clause'