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 (45421,45043,17981,44674,13,44689,16935,43800,17237,44861,44767,14402,45518,18301,17492,18688,17278,44869,18446,10402,44875,18650,45517,44835,18894,5410,18430,32454,17904,6609,44863,30135,19057,18900,45567,44848,45042,5388,9341,5993,3,44878,18427,13922,44765,44868,18279,6875,36472,3883,45515,44531,44853,44766,18996,17114,44873,44866,44640,44671,18353,37057,17335,22509,17657,44775,44762,44894,44739,18648)
Unknown column 'np.person' in 'where clause'