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 (44762,5259,16935,45180,44836,30986,44689,44878,44768,44766,37267,44764,13922,45262,43800,30963,17839,44835,18042,17755,3883,44669,14402,44837,44863,45286,17237,45421,44845,18427,18286,44851,44671,44856,6609,18719,5388,3,45517,17335,19057,44866,18446,17657,18301,44853,17492,44869,5993,18650,17092,37057,16885,31354,45072,44674,17009,44848,24411,18172,44861,18353,44685,18996,45229,44765,44868,45042,44894,44870)
Unknown column 'np.person' in 'where clause'