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 (44837,44674,18652,17848,44765,17771,18996,30963,17703,36472,44858,45567,5259,18286,13988,44768,17009,44848,16885,45229,45262,24438,17839,44531,44868,13922,5388,44851,44845,18894,4765,18648,18650,34194,18794,17492,37267,18688,44884,5993,44640,18900,9341,13425,44853,45072,14622,17657,44836,45518,44711,43800,44775,45517,24441,3,44671,45515,17278,6609,6875,24412,28313,18353,44866,44766,45043,44745,44685,18172)
Unknown column 'np.person' in 'where clause'