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 (45561,44868,17839,28313,17092,45346,3,45567,17657,14622,44745,18279,24441,44836,44849,37267,17009,44762,44848,34194,16885,45042,44687,18446,18650,44685,30963,44853,44671,18652,44875,24411,13922,44739,17755,18648,17981,45518,17492,30986,45516,44867,44869,14402,6862,18688,24412,13,17703,13425,18301,17771,18172,24438,44884,13988,17904,5388,32454,18185,44765,44863,44674,18353,5410,17335,10402,44866,44851,44873)
Unknown column 'np.person' in 'where clause'