Chapter 5. Working with Databases, Page 95

Location on the page: 
2nd paragraph
Chapter: 
5. Working with Databases
Error: 

Note that you pass the variables that will fill placeholders before the range (so the type
and status are passed before 0 and 10 in the example just shown).

Correction: 

Note that you pass the variables that will fill placeholders after the range and an optional count query (so the type and status are passed after 0, 10 and an undefined string in the example just shown).

Description of the Error: 

According to api.d.o, pager_query receives SQL arguments from the fifth parameter on.