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 (28530,17835,45561,44875,31354,18353,4686,44671,44711,9341,5388,44837,24441,44867,44868,6782,17527,44689,18446,44669,45043,17335,45229,13988,6862,18185,45346,18648,44849,45262,45567,45516,22509,17009,44767,14402,44765,44687,3883,18279,44685,44869,18042,34194,5259,44775,18172,30963,18301,30986,17904,18688,44848,17556,18237,45177,44762,17492,44845,44674,17756,44640,44768,37267,17703,44739,18900,44873,39676,44863)
Unknown column 'np.person' in 'where clause'