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 (17835,19078,5388,18301,44884,14622,8753,18172,45229,13988,6875,44866,44854,45517,44739,18446,44765,45561,44858,18894,44767,5259,17009,44863,45072,16935,17335,18794,44762,18648,39676,44669,44870,34194,44711,4686,44868,17114,45516,18996,9341,30986,43800,44865,44674,10402,30135,17527,18353,13922,44855,17556,44836,24441,17351,16885,28313,45043,17703,14402,44531,44768,45286,18900,44687,44848,44685,17771,5993,18981)
Unknown column 'np.person' in 'where clause'