Question: My timer pause and resume does not work? it has a logical error which said WARNING:timer.resume(timerID)ignored b/c was not paused. Any idea? Should i add add or remove listener to remove to stop the transition of the timer?

```
local timerEnabled = true --  Stops or allows our countdown timer       
local touchEnabled = false      

local delay_timer               
local timer_trans   -- transition of my timerbar           

local timer_rect      --display object          
local timer_bar        -- display object       

function pauseGame(  )
    if (timerEnabled==false) then
            timer.pause(timer_bar)
            answer_rect:removeEventListener( "touch", buttonTouched )

    elseif (timerEnabled==true) then
            timer.resume(timer_bar)    
            answer_rect:addEventListener( "touch", buttonTouched )

    end
end

local pauseButtonPress = function( event )
    pauseGame()
end

        timer_rect = display.newRect(uiGroup, _W*0.5, question_rect.y+question_rect.height, _W, 50 )
        timer_rect.anchorY = 0
        timer_rect:setFillColor(0,0.3,0.7)

    if timerEnabled == true then 
        timer_bar = display.newRect(uiGroup, 0, timer_rect.y+timer_rect.height-20, _W, 35)
        timer_bar.anchorX = 0 
        timer_bar:setFillColor(0.8,1,1)
    end

        pauseButton= widget.newButton{       
        defaultFile = "images1/Buttons/Pause.png",
        overFile= "images1/Buttons/Resume.png",
        onRelease = pauseButtonPress,
    }
        pauseButton.x = 100
        pauseButton.y = 90
        pauseButton.xScale = .6
        pauseButton.yScale = .6

```

Answer: 
Simple rule: *Never* use commas in the `FROM` clause. *Always* use proper, explicit `JOIN` syntax.

I think that is the root of your problem. Your query should look like this:

```
SELECT instructor_id, progess_made,
FROM bookings b JOIN
     staff s
     ON b.staffid = s.staffid  -- I made up these columns
WHERE progess_made LIKE 'New';

```

I made up the columns for the `JOIN`. Use the appropriate columns for your data.
Notice the **LIMIT** at the end I added.

```
SELECT DISTINCT
    instructor_id,
    progess_made,
FROM
    bookings, staff

    WHERE progess_made LIKE "New"
LIMIT 1;

```

You can limit n# or records using the LIMIT clause. You can also use this for paging purposes. 
Read: <https://dev.mysql.com/doc/refman/5.5/en/limit-optimization.html> and
<http://dev.mysql.com/doc/refman/5.7/en/select.html>