Justin Bieber is going to be grilled about Selena Gomez again because he acted like such a jerk the first time around -- a judge is ORDERING him to sit for another deposition ... TMZ has learned.
According to documents in Miami ... JB will be interrogated by the lawyer in the alleged paparazzi beating case -- the same lawyer who got under Bieber's skin during a March deposition.
TMZ posted the epic video which included Bieber repeatedly shouting, "Don't ask me about her again" ... when the attorney asked about Selena.
The judge's order says Bieber will have to answer questions he refused to answer last time -- for instance ... whether he ever discussed the paparazzi with Selena.
No date's been set yet for take 2 of the deposition -- but we're told it will absolutely be videotaped again.