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 (18279,13922,17556,17492,44873,9341,44762,44870,17335,18688,45043,5388,18572,17771,8753,17839,17237,44884,24441,17601,18185,28530,45229,45042,13988,18996,24411,18719,18652,17756,45515,5259,44765,44837,44875,45051,45516,39676,44687,44894,44764,36472,6782,44835,44863,18427,16935,45286,44878,44685,43800,18894,44865,3883,45421,44711,30963,44868,18648,44848,44836,44869,44861,44689,17527,17835,44766,18900,32454,18172)
Unknown column 'np.person' in 'where clause'