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 (5388,45516,44870,22509,37057,9341,17755,5993,17835,44851,18650,44689,18996,30986,24438,17657,17335,45180,18446,6875,45561,13922,44835,44867,44855,18237,44866,17839,44836,34194,44854,24411,17771,44837,44768,18042,17009,44685,6609,17527,45051,8753,44868,18185,44671,6862,19078,45346,44884,5259,3883,18172,44875,24412,44531,43800,39676,28530,4765,45042,18430,44762,44745,18648,45277,44845,36472,44669,18900,13)
Unknown column 'np.person' in 'where clause'