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 (19057,9341,45277,30986,17848,31354,18353,17981,28313,45043,10402,16885,44739,44849,44836,17114,44711,19078,45567,43800,24438,44687,44869,5388,44640,17092,44531,24441,17335,18427,17657,30963,17492,44855,45421,17771,17835,18996,22509,45517,44851,18894,4686,13988,44767,44689,13,44870,44764,16935,44878,3883,17703,45286,6862,18648,44685,6609,5259,17839,44875,45177,45561,39676,18301,44863,13425,3,17755,6782)
Unknown column 'np.person' in 'where clause'