Error thrown
Call to undefined function have_rows()